---
name: "dnsspoof"
section: "8"
platform: "linux"
package: "dsniff"
version: "2.4b1-34"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dnsspoof"
---

# dnsspoof(8)

forge replies to DNS address / pointer queries

## NAME

dnsspoof - forge replies to DNS address / pointer queries

## SYNOPSIS

```

```

**dnsspoof** \[**-i** *interface*\] \[**-f** *hostsfile*\]  \[*expression*\]

## DESCRIPTION

**dnsspoof** forges replies to arbitrary DNS address / pointer queries on the LAN. This is useful in bypassing hostname-based access controls, or in implementing a variety of man-in-the-middle attacks.

## OPTIONS

- **-i** *interface*

  Specify the interface to use.

- **-f** *hostsfile*

  Specify the pathname of a file in [hosts(5)](/hosts/5.md) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *\*.doubleclick.net*).

- *expression*

  Specify a [tcpdump(8)](/tcpdump/8.md) filter expression to select traffic to sniff.

If no *hostsfile* is specified, replies will be forged for all address queries on the LAN with an answer of the local machine's IP address.

## FILES

- */usr/share/dsniff/dnsspoof.hosts*

  Sample hosts file.

## SEE ALSO

[dsniff(8)](/dsniff/8.md), [hosts(5)](/hosts/5.md)

## AUTHOR

```
Dug Song <dugsong@monkey.org>
```
