Question

Locked

BIND DNS - trace query replying dns server

By gc_don2010 ·
How do i know the reply was from caching-nameserver, master nameserver or slave nameserver in BIND DNS.?
Can I trace the nameserver that replied my dns query?

Like I have a master nameserver, a slave nameserver and a caching nameserver in my network. Is it possible to know that which of these servers replied my dns query?

Also can i trace back that replying server?

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Use DiG

by seanferd In reply to BIND DNS - trace query re ...

if you don't know how to use BIND.

Collapse -

DIG

by gc_don2010 In reply to Use DiG

Sorry being new to linux admin,

Can you please explain how to use dig?

Collapse -

Use dig -h for a list of options.

by seanferd In reply to DIG

Or see the man page or other docs to use it as needed.
http://www.google.com/search?ie=UTF-8&oe=utf-8&q=linux+dig

Here's a web man page:
http://linux.die.net/man/1/dig

I assume also that these servers have IP addresses. The IP address from which the response is sent tells you which server it is.

You can also do packet capture and analysis on your network to see what is going where. Use Wireshark or something like that.

Bottom line: I have no idea what you are trying to do, under what circumstances you expect to be able to identify which server is responding, etc. Also, I am neither a Linux nor BIND admin.

But, in short, you should know which is responding because you have to configure the nameserver address in the OS or router to resolve names anyway. Primary and secondary nameservers are authoritative for the zone. They respond to recursive (caching) nameservers (resolvers), and resolvers respond to lookups from the network.

So, in short, it is always the caching server which answers the lookup, unless it is the resolver doing the lookup against the authoritative NS, or against another resolver (e.g., forwarded to an internet resolver).

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums