I have the DNS files set up on my OpenBSD 4.0 amd64 system however when I run named, I get the following error in my logs:
Sep 23 10:43:03 grunty named[11608]: starting BIND 9.3.2-P1
Sep 23 10:43:03 grunty named[11608]: /etc/named.conf:25: change directory to '/var/named' failed: file not found
Sep 23 10:43:03 grunty named[11608]: /etc/named.conf:25: parsing failed
Sep 23 10:43:03 grunty named[11608]: loading configuration: file not found
Sep 23 10:43:03 grunty named[11608]: exiting (due to fatal error)
The directory "/var/named" exists:
drwxr-xr-x 7 root named 512 Sep 23 11:06 named
And the subdirectories also exist:
# ls -la
total 28
drwxr-xr-x 7 root named 512 Sep 23 11:06 .
drwxr-xr-x 24 root wheel 512 Aug 12 08:47 ..
drwxrwxr-x 2 root named 512 Sep 23 11:05 dev
drwxrwxr-x 2 root named 512 Sep 23 11:05 etc
drwxrwxr-x 3 root named 512 Sep 23 11:05 master
drwxrwxr-x 2 root named 512 Sep 23 11:05 slave
drwxrwxr-x 2 root named 512 Sep 23 11:05 standard
named.conf exists in /var/named/etc:
# ls -al
total 20
drwxrwxr-x 2 root named 512 Sep 23 11:05 .
drwxr-xr-x 7 root named 512 Sep 23 11:06 ..
-rw-r----- 1 root named 1617 Sep 16 2006 named-dual.conf
-rw-r----- 1 root named 1407 Sep 16 2006 named-simple.conf
-r--r----- 1 root named 1973 Sep 23 09:57 named.conf
# pwd
/var/named/etc
As near as I can tell, permissions and directories are all accurate. I've tried moving the directories under /var/named/var/named in case named chroot's before reading the config file but I get the same result.
I've done some poking around on Google and the answers all seem to be "does /var/named/etc exist" and "what are the permissions". I believe I've covered those questions here.
So, any other ideas?
Carl