Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have two servers (a master and slave) running DNS (bind). What should the /etc/resolv.conf file look like for the master and the slave? For example should the servers running the DNS have only :

nameserver 127.0.0.1

or should they refer to the I.P. addresses of each server, as the other servers on the network do :

search <mydomain>.co.uk
nameserver 192.168.1.52
nameserver 192.168.1.57
share|improve this question
    
"master and slave" - are your DNS servers authoritative, recursive, or both ? –  Sandman4 Jun 7 '12 at 12:47
add comment

1 Answer

It depends on the listen-on directive. If the server listens on all interfaces then it does not matter whether it is 127.0.0.1 or the other IP addresses.

share|improve this answer
    
I have listen-on-v6 { any; };, so what does that mean? –  Tim the Enchanter Jun 7 '12 at 10:09
    
It means that it listens on any interface, and therefore 127.0.0.1 is enough. For more details you can read the BIND9 Administrator's Reference Manual –  adamo Jun 7 '12 at 10:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.