Can I run in debug mode doing a DNS search?

1:24 PM

To run the nslookup command in debug mode to see all of the messages and where the DNS request goes to for its answer you can run the following:


Example Code - Setting debug mode in DNS

C:\Users\aslam>nslookup
Default Server:  ns1.optimalondemand.com
Address:  209.34.84.227

> set debug
> latheef.net
Server:  ns1.optimalondemand.com
Address:  209.34.84.227

------------
Got answer:
    HEADER:
        opcode = QUERY, id = 4, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 4,  additional = 4

    QUESTIONS:
        latheef.net, type = A, class = IN
    ANSWERS:
    ->  latheef.net
        internet address = 209.34.89.25
        ttl = 234 (3 mins 54 secs)
    AUTHORITY RECORDS:
    ->  latheef.net
        nameserver = util02.iad02.latheef.net
        ttl = 234 (3 mins 54 secs)
    ->  latheef.net
        nameserver = util02.sjc01.latheef.net
        ttl = 234 (3 mins 54 secs)
    ->  latheef.net
        nameserver = util02.sjc02.latheef.net
        ttl = 234 (3 mins 54 secs)
    ->  latheef.net
        nameserver = util02.sjc03.latheef.net
        ttl = 234 (3 mins 54 secs)
    ADDITIONAL RECORDS:
    ->  util02.iad02.latheef.net
        internet address = 209.34.84.216
        ttl = 234 (3 mins 54 secs)
    ->  util02.sjc01.latheef.net
        internet address = 65.200.35.33
        ttl = 234 (3 mins 54 secs)
    ->  util02.sjc02.latheef.net
        internet address = 209.34.95.21
        ttl = 234 (3 mins 54 secs)
    ->  util02.sjc03.latheef.net
        internet address = 209.34.89.28
        ttl = 234 (3 mins 54 secs)

------------
Non-authoritative answer:
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 5, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional = 0

    QUESTIONS:
        latheef.net, type = AAAA, class = IN
    AUTHORITY RECORDS:
    ->  latheef.net
        ttl = 300 (5 mins)
        primary name server = util02.sjc03.latheef.net
        responsible mail addr = corp-admin.latheef.net
        serial  = 2009062913
        refresh = 10800 (3 hours)
        retry   = 300 (5 mins)
        expire  = 432000 (5 days)
        default TTL = 300 (5 mins)

------------
Name:    latheef.net
Address:  209.34.89.25

>

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results