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
- http://dnsstuff.com/
- Microsoft Knowledge Base Using NSlookup.exe
- http://loreley.ath.cx/cygwin/DNS/bind-9.2.2/
- http://pigtail.net/LRP/dig/
-- Frank Dean - 13 Jan 2003
Related Topics: NetworkTools