I hope somebody can tell me what I'm doing wrong with getting DNS to work.
I upgrade to bind9 on my OpenBSD box and run the bind9-enable script. I
put the config files in /var/named. I attempt to start bind with the
"named" command. It only lets me do it as a non-privileged user. So, I
attempt to chroot() it, and I get "chroot(): Operation not permitted."
Then, I attempt to chroot() it as root and it cannot find the "named"
executable - even when I switch to the directory it's in!
Finally, I break down and copy /var/named/etc/named.conf to /etc. I run
it (as a nonprivileged user, the only way it will take it) and, after it
*es about some syntax errors which I correct, I try again. This time,
I get, in /var/log/messages:
Sep 11 00:04:26 chianti named[26863]: starting BIND 9.2.0
Sep 11 00:04:26 chianti named[26863]: could not listen on UDP socket:
permission denied
Sep 11 00:04:26 chianti named[26863]: creating IPv4 interface lo0 failed;
interface ignored
Sep 11 00:04:26 chianti named[26863]: could not listen on UDP socket:
permission denied
Sep 11 00:04:26 chianti named[26863]: creating IPv4 interface sis0 failed;
interface ignored
Sep 11 00:04:26 chianti named[26863]: not listening on any interfaces
Sep 11 00:04:27 chianti named[26863]: could not configure root hints from
'db.cache': file not found
Sep 11 00:04:27 chianti named[26863]: loading configuration: file not fou
PLEASE HELP!
Thanks.