General use:

  1. nslookup
  2. set type=any
  3. can now query domains e.g.
  4. server servername server - can then query the server servername
  5. ls -t ns domainname e.g. ls -t ns - lists all the domains under the domain entered
  6. ls -d domainname gives an alternative listing

Using nslookup to investigate too many hops problems

  1. Check mail exchanger for sender
    1. enter nslookup
    2. set type=any
    3. enter domainname which will give you the mail exchanger
  2. enter traceroute mail_exchange to show route it takes

Can also do nslookup -querytype=mx name to check it exists

Finding the Authoritive NameServer for an IP Address

For this example we want to find the master server for

 1. Enter nslookup
 2.  >  - if this resolves you will get the fully qualified name
 3.  > set domain=//domainname//
 4.  > set debug </b></font>
 5.  > - gives authoritive records and name servers e.g 
 6. > //nameserver// - gives IP address of nameserver
 7. > server //IP_address_of_nameserver//
 8. > ls -d 10.IN-ADDR.ARPA - shows contents of database
 9. > exit </b></font>

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password