chroot Bind 9.2

Kevin Darcy kcd at daimlerchrysler.com
Thu Jan 31 20:15:20 UTC 2002


Offhand, I don't see anything wrong. You didn't say what OS this was, so
I can't really verify that "etc", "dev" are reasonable.

Perhaps you should run named-checkconf to verify that there isn't some
sort of syntax error in the chroot'ed named.conf that might be causing
named to exit. You should also double-check your logging setup, since
there should have been some log messages indicating the problem. If named
is not exiting gracefully, presumably it's crashing and leaving a core
file somewhere, so you might want to look for one of those.


- Kevin

laurent wrote:

> hi all ,
>
> I've got a problem with named deamon..
> I've tried to chroot bind 9.2 according to the Chroot-BIND-HOWTO-2,
> and when i ran script named, message is OK, but nothing particular
> happened.
> on a ps -auxw, there's nothing about named exept "syslogd -m 0 -a
> /chroot/named/dev/log".
> Is it normal ??
> What can be the problem ? is there any rights problems ?
> please find my conf below.
>
> Thank you in advance.
>
> here is : /chroot/named
> drwx------    5 named    named        4096 jan 30 18:53 .
> drwx------    3 root     root         4096 jan 30 18:52 ..
> drwxr-xr-x    2 root     root         4096 jan 31 15:31 dev
> drwxr-xr-x    3 root     root         4096 jan 30 18:58 etc
> drwxr-xr-x    3 root     root         4096 jan 30 18:53 var
> [
> here is : /chroot/named/var
> drwxr-xr-x    3 root     root         4096 jan 30 18:53 .
> drwx------    5 named    named        4096 jan 30 18:53 ..
> drwxr-xr-x    2 named    named        4096 jan 30 18:53 run
>
> here is : /chroot/named/etc
> drwxr-xr-x    3 root     root         4096 jan 30 18:58 .
> drwx------    5 named    named        4096 jan 30 18:53 ..
> -rw-r--r--    1 root     root         1082 jan 30 18:58 localtime
> drwxr-xr-x    3 root     root         4096 jan 30 18:56 namedb
> -rw-r--r--    1 root     root          837 jan 31 14:10 named.conf
>
> here is : /chroot/named/etc/namedb
> drwxr-xr-x    3 root     root         4096 jan 30 18:56 .
> drwxr-xr-x    3 root     root         4096 jan 30 18:58 ..
> -rw-r--r--    1 25       25            195 jui  3  2001 localhost.zone
> -rw-r--r--    1 25       25           2769 jui  3  2001 named.ca
> -rw-r--r--    1 25       25            433 jui  3  2001 named.local
> drwxr-xr-x    2 named    named        4096 jan 30 18:55 slave
>
> here is : /chroot/named/dev
> drwxr-xr-x    2 root     root         4096 jan 31 15:31 .
> drwx------    5 named    named        4096 jan 30 18:53 ..
> srw-rw-rw-    1 root     root            0 jan 31 15:31 log
> crw-rw-rw-    1 root     root       1,   3 jan 30 18:57 null
> crw-rw-rw-    1 root     root       1,   8 jan 30 18:58 random
>
> here is the starting part of named script in /etc/rc.d/init.d
>
> [ -f /usr/local/sbin/named ] || exit 0
>
> [ -f /chroot/named/etc/named.conf ] || exit 0
>
> # See how we were called.
> case "$1" in
>   start)
>         # Start daemons.
>         echo -n "Starting DNS Server - BIND : "
>         daemon /usr/local/sbin/named -t /chroot/named -c
> /etc/named.conf -u named
>         RETVAL=$?
>         echo
>         [ $RETVAL = 0 ] && touch /var/lock/subsys/named
>         ;;
>
> here is my named line in passwd :
> named:x:53:53:DNS User:/chroot/named:/bin/false
> in shadow file:
> named:*:11717:0:99999:7:::
>
> Here is the first part of my named.conf :
> options {
>         directory "/etc/namedb";
>         pid-file "/var/run/named.pid";
>         statistics-file "/var/run/named.stats";
> };



More information about the bind-users mailing list