Trace a chain of dns servers to the source
dnstracer [options] name
dnstracer determines where a given Domain Name Server (\s-1DNS\s0) gets its information from, and follows the chain of \s-1DNS\s0 servers back to the servers which know the data.
Disable local caching.
Enable negative caching.
Enable overview of received answers at the end.
Change the query-class, default is A. You can either specify a number of the type (if you're brave) or one of the following strings: a, aaaa, a6, soa, cname, hinfo, mx, ns, txt and ptr.
Number of retries for \s-1DNS\s0 requests, default 3.
\s-1DNS\s0 server to use for the initial request, default is acquired from the system. If a dot is specified (.), A.ROOT-SERVERS.NET will be used.
Be verbose on what sent or received.
Use only IPv4 servers, don't query IPv6 servers (only available when IPv6 support hasn't been disabled)
Use this as source-address for the outgoing packets.
It sends the specified name-server a non-recursive request for the name.
Non-recursive means: if the name-server knows it, it will return the data requested. If the name-server doesn't know it, it will return pointers to name-servers that are authoritive for the domain part in the name or it will return the addresses of the root name-servers.
If the name server does returns an authoritative answer for the name, the next server is queried. If it returns an non-authoritative answer for the name, the name servers in the authority records will be queried.
The program stops if all name-servers are queried.
Make sure the server you're querying doesn't do forwarding towards other servers, as dnstracer is not able to detect this for you.
It detects so called lame servers, which are name-servers which has been told to have information about a certain domain, but don't have this information.
Search for the A record of www.mavetju.org on your local nameserver:
Search for the \s-1MX\s0 record of mavetju.org on the root-nameservers:
dnstracer \*(C`-s\*(C' . \*(C`-q\*(C' mx mavetju.org
Search for the \s-1PTR\s0 record (hostname) of 184.108.40.206:
dnstracer \*(C`-q\*(C' ptr 220.127.116.11.in-addr.arpa
And for IPv6 addresses:
dnstracer \*(C`-q\*(C' ptr \*(C`-s\*(C' . \*(C`-o\*(C' 18.104.22.168.0.0.0.0.0.0.0.0.0.0.0.0.0.6.4.0.22.214.171.124.0.8.b.0.e.f.f.3.ip6.int
ntptrace\|(8), traceroute\|(8), dig\|(1)
Edwin Groothuis, [email protected] (http://www.mavetju.org)
See http://www.mavetju.org/contacts.php for mailing-lists.