Skip to content

measurement-factory/dnstop

Folders and files

NameName
Last commit message
Last commit date
Sep 12, 2014
Dec 24, 2002
Mar 29, 2021
Jan 13, 2022
May 2, 2011
May 2, 2011
Jan 13, 2011
Mar 16, 2021
Jul 8, 2024
Sep 15, 2014
May 11, 2007
Jan 4, 2011
Jan 4, 2011
Apr 29, 2008
Feb 26, 2018
Apr 29, 2008
Sep 12, 2014
Sep 12, 2014
Feb 26, 2018

Repository files navigation

DNSTOP: STAY ON TOP OF YOUR DNS TRAFFIC

dnstop is a libpcap application (like tcpdump) that displays various tables of DNS traffic on your network. Currently dnstop displays tables of:

  • Source IP addresses
  • Destination IP addresses
  • Query types
  • Response codes
  • Opcodes
  • Top level domains
  • Second level domains
  • Third level domains
  • etc...

dnstop supports both IPv4 and IPv6 addresses.

To help find especially undesirable DNS queries, dnstop provides a number of filters. The filters tell dnstop to display only the following types of queries:

  • For unknown/invalid TLDs
  • A queries where the query name is already an IP address
  • PTR queries for RFC1918 address space
  • Responses with code REFUSED
  • Responses with code SERVFAIL
  • Responses with code NXDOMAIN

dnstop can either read packets from the live capture device, or from a tcpdump savefile.

See also http://dns.measurement-factory.com/tools/dnstop/.

For compatibility with musl libc, define CFLAGS=-D_GNU_SOURCE during configure.