Tracing DNS resolution

When you need to trace how dns is resolving your server here is a way to do it.
First run this nslookup query:

nslookup -q=ns example.com a.root-servers.net
Authoritative answers can be found from:
com nameserver = h.gtld-servers.net.
com nameserver = d.gtld-servers.net.
com nameserver = k.gtld-servers.net.
com nameserver = g.gtld-servers.net.
com nameserver = c.gtld-servers.net.
com nameserver = f.gtld-servers.net.
com nameserver = j.gtld-servers.net.


Now choose one of the results and run the query again like this:

nslookup -q=ns example.com a.gtld-servers.net
Authoritative answers can be found from:
example.com nameserver = ns1.example.com.
example.com nameserver = ns2.example.com.
example.com nameserver = ns3.example.com.
ns1.example.com internet address = 10.12.12.12


You can repeat the above if you still haven't reached your destination

Comments

  1. Very useful post. You can also do the same by using dig in one command line:

    dig +trace www.example.com

    ReplyDelete

Post a Comment

Popular posts from this blog

AngularJs: User friendly date display with AngularJs and MomentJs

Nerd Tree: A File Explorer with Mac Vim

Getting started with Grails functional tests using Geb + Spock