I'm trying to set up a DNS Caching Server on one of my local machines. I've followed the DNS-Howto (
http://www.tldp.org/HOWTO/DNS-HOWTO.html) to the letter, but whenever I start named, it fails.
tail -f /var/log/messages outputs:
Oct 6 17:20:05 Marcus named[29170]: loading configuration from '/etc/named.conf'
Oct 6 17:20:05 Marcus named[29170]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 6 17:20:05 Marcus named[29170]: listening on IPv4 interface eth0, 192.168.0.101#53
Oct 6 17:20:05 Marcus named[29170]: root.hints:33: file does not end with newline
Oct 6 17:20:05 Marcus named[29170]: command channel listening on 127.0.0.1#953
Oct 6 17:20:05 Marcus named[29170]: couldn't open pid file '/var/run/named/named.pid': Permission denied
Oct 6 17:20:05 Marcus named[29170]: exiting (due to early fatal error)
Oct 6 17:21:41 Marcus su: pam_unix2: session finished for user root, service su
Oct 6 17:22:02 Marcus su: (to root) katie on /dev/pts/1
Oct 6 17:22:02 Marcus su: pam_unix2: session started for user root, service su
So I assume this is a permissions problem. I've been doing the whole process by su'ing to root and making changes as neccesarry. Must I actually be logged in as root for this to work, or is 'su' sufficient?
Thanks in advance.
P.S.
This is on SuSE 9.1