[SunHELP] BIND 9.2.3: named crash after 30sec.
Michael Karl
mk at lexcom-net.de
Fri Sep 3 09:33:29 CDT 2004
Hello,
at first, special thanks to Luc.
But nothing helps ... named already stop after 30sec. fine working.
Luc wrote:
> for one Solaris 9 comes with /dev/random and /dev/urandom
> so do not try to mount it!
Ok. This is changed for /dev/random ... see at end the
changed start-script.
/dns/dev/random is now created.
>
> you need to create the /dns/tmp directory and create the
> random/urandom/null/zero devices..
It's already done.
>
> btw it's NOT a good idea to have your dns under the / partition
> /var/dns maybe a better option...
It's not under / ... /dns is a symlink to /data/dns ;-)
Does anybody have any other hints ?
Sep 03 14:12:48.122 general: zone 0.0.127.in-addr.arpa/IN: loaded serial
2003091201
Sep 03 14:12:48.124 general: zone 111.168.192.in-addr.arpa/IN: loaded serial
2003092401
Sep 03 14:12:48.126 general: zone 122.168.192.in-addr.arpa/IN: loaded serial
2003092401
Sep 03 14:12:48.127 general: zone 133.168.192.in-addr.arpa/IN: loaded serial
2004011401
Sep 03 14:12:48.131 general: zone intern.lexcom-net.de/IN: loaded serial
2004072801
Sep 03 14:12:48.133 general: zone localhost/IN: loaded serial 50
Sep 03 14:12:48.133 general: running
Looking at debuglog I see no error
Should I change the debug-modus? Which settings ?
logging {
category "default" { "debug"; };
category "general" { "debug"; };
category "database" { "debug"; };
category "security" { "debug"; };
category "config" { "debug"; };
category "resolver" { "debug"; };
category "xfer-in" { "debug"; };
category "xfer-out" { "debug"; };
category "notify" { "debug"; };
category "client" { "debug"; };
category "unmatched" { "debug"; };
category "network" { "debug"; };
category "update" { "debug"; };
category "queries" { "debug"; };
category "dispatch" { "debug"; };
category "dnssec" { "debug"; };
category "lame-servers" { "debug"; };
channel "debug" {
file "/var/log/bind.log" versions 3 size 50m;
print-time yes;
print-category yes;
};
};
Thanks in advance
Michael
>> I use this script ... the old one from the Sol8/UE10-Backup
>>
>> bash-2.05# more /etc/rc2.d/S50dns
>> #!/bin/sh
>> # Paths to key files:
>> root='/dns';
>> named="/usr/local/sbin/named"; # relative to $root
>> conf="$root/etc/named.conf";
>> pid="$root/var/run/named.pid";
>>
>> case $1 in
>>
>> 'start')
>> # Mount device on loopback filesystem
#
# This is no more activ at startup
#
# umount /dns/dev/random 2>/dev/null
# mkdir /dns/dev/random 2>/dev/null
# mount -F lofs /dev/random /dns/dev/random
>>
>> # make sure it's dead first
>> [ -f $pid ] && kill `cat $pid` >/dev/null 2>&1
>>
>> echo "Starting BIND dns name server `date`. . . \c"
>> if [ -f $root/$named -a -f $conf ]; then
>> (umask 027; /usr/sbin/chroot $root $named -u named)
>> sleep 1
>> if [ "$?" -ne 0 ]; then
>> echo "Warning: BIND has not started"
>> elif [ ! -f $pid ]; then
>> echo "Warning: BIND pid file $pid missing."
>> else
>> echo "running with pid `cat $pid`".
>> fi
>> fi
>> ;;
>> 'stop')
>> echo "Stopping BIND `date`. . .\c"
>> kill `cat $pid`
>> if [ "$?" -ne 0 ]; then
>> echo "Warning: BIND not killed"
>> else
>> echo "done."
>> fi
>> ;;
>> 'restart')
>> echo "Restarting BIND `date`. . .\c"
>> $0 stop
>> sleep 1
>> $0 start
>> ;;
>> 'reload')
>> echo "Reloading BIND `date`. . .\c"
>> kill -1 `cat $pid`
>> if [ "$?" -ne 0 ]; then
>> echo "Warning: BIND not reloaded"
>> else
>> echo "HUP send to PID `cat $pid`".
>> fi
>> ;;
>> *)
>> echo "Usage: $0 { start | stop | restart | reload}"
>> ;;
>> esac
More information about the SunHELP
mailing list