DNS Tools

On a Debian system, dig and nslookup are distributed in the dnsutils package.

dig

General

  • dig target.com NS

to show authoritative name serves for a domain

  • dig target.com ANY

or to see what a particular DNS system is holding

  • dig @dns.server.com target.com ANY

Listing mail (MX) records

  • dig target.com MX

or to see what a particular DNS system is holding

  • dig @dns.server.com target.com MX

Tracing through root servers

  • dig target.com MX +trace

Create a hints file for Bind

    $ dig @e.root-servers.net . ns >root.hints.new

nslookup

Deprecated - it's now recommended that you use dig instead

Listing mail (MX) records

  • nslookup -type=MX target.com or
  • nslookup -type=MX target.com dns.server.com

  • nslookup -type=ALL target.com dns.server.com

Resources


-- Frank Dean - 13 Jan 2003

Related Topics: NetworkTools