1
I'm trying to set up BIND9 as a local caching DNS server. I'm about to do that on all my systems: Linux, SmartOS, Mac OS X. Seems like it's quite easy to setup bind for that. My question is: Do I need to add "nameserver 127.0.0.1" to my /etc/resolv.conf in order to ask the local name server first? Or is that kind of automatic?
1I tried it on my SmartOS box. Initial state: /etc/resolv.conf contains "nameserver 127.0.0.1" as the first line. Then, dig gives me the result from 127.0.0.1. Next, I edit /etc/resolv.conf to remove the line "nameserver 127.0.0.1". Trying dig again, I now get the result from 192.168.1.1 (my home router). So, by just checking it out - at least on SmartOS I do need to put "nameserver 127.0.0.1" as the first name server directive. – ServArt – 2016-06-04T21:51:27.157