DNS Performance
Setting up named requires editing /etc/named.conf and /etc/hostconfig. In /etc/hostconfig, you add a line
DNSSERVER=-YES-
at the end. In /etc/named.conf
* comment out the two lines involving rndc.key, by putting // at the beginning of the line
* in the options section, if you have a name server you trust, I recommend adding
forward first;
forwarders { a.b.c.d; };
where a.b.c.d is the IP address of that server. You don't need this. If you don't supply it, your system will go directly to the official servers. But typically you'll get somewhat better performanc and lessen the load on the official server.
* in the controls section, there's a line
inet 127.0.0.1 port 54 allow {any;}
It should be
inet 127.0.0.1 port 54 allow {any;};
Test it by doing /usr/sbin/named -g. Make sure it starts up properly. If there's a problem with the file it should tell you at least what line it's on. Once named starts properly, reboot to get it started automatically. It's normal in the configuration I have given to get complaints about keys.
Debugging aids:
* ps agx | grep named should show named running
* sudo /usr/sbin/named -g will start named with debugging
* /Library/Logs/named.log is the log file
* sudo killall -HUP named will cause named to reread /etc/named.conf
* sudo tcpdump port 53 will show all DNS queries
G4 MDD dual 1 GHz, Macbook Pro 2 GHz Mac OS X (10.4.6)