> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/lan-turtle-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/lan-turtle-hub/payload-development/duckyscript-for-lan-turtle/dnsspoof.md).

# DNSSPOOF

The DNS Override and Spoofing service enables the LAN Turtle Hub to override DNS queries from clients, providing custom responses. The DNSSPOOF set of commands allows for configuration of this service.

## DNSSPOOF\_ADD\_HOST

The `DNSSPOOF_ADD_HOST` adds a host to the DNS override list.

### Options

The DNSSPOOF\_ADD\_HOST command expects one of the following options:

```
DNSSPOOF_ADD_HOST A [hostname] [IPv4 address]
DNSSPOOF_ADD_HOST AAAA [hostname] [IPv6 address]
```

#### A record

Maps a domain name (hostname) to an IPv4 address, directing traffic to the server hosting the domain.

#### AAAA record

Maps a domain name (hostname) to an IPv6 address, directing traffic to the server hosting the domain.

#### hostname

The domain name (like example.com) used to identify a server or website.

#### IPv4 address

A standard dotted-quad IPv4&#x20;

A 32-bit numeric address (like `172.16.84.1`) used to identify a device on the internet.

#### IPv6 address

A 128-bit alphanumeric address (like `2001:0db8:85a3::8a2e:0370:7334`) used to identify a device on the internet with more unique addresses than IPv4.

## DNSSPOOF\_CLEAR

The `DNSSPOOF_CLEAR` command will clear all hosts from the DNS override list.

## DNSSPOOF\_DEL\_HOST

The `DNSSPOOF_DEL_HOST` command will remove a host from the DNS override list.

### Options

The `DNSSPOOF_DEL_HOST` command expects one of the following options:

```
DNSSPOOF_DEL_HOST A [hostname] [IPv4 address]
DNSSPOOF_DEL_HOST AAAA [hostname] [IPv6 address]
```

## DNSSPOOF\_DISABLE

The `DNSSPOOF_DISABLE` command will disable the DNS override service.

## DNSSPOOF\_ENABLE

The `DNSSPOOF_ENABLE` command will enable the DNS override service.
