DNS Tools

dig

General

  • 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 -typeMX target.com= or
  • nslookup -typeMX target.com dns.server.com=

  • nslookup -typeALL target.com dns.server.com=

Resources

Related Topics: NetworkTools

-- Frank Dean - 13 Jan 2003