Hello,
I have been using FreeBSD-7.0STABLE with BIND-9.4.2 ( i guess, forget to check
before upgrade) up to 2008-01-26 (yesterday).
But after upgrade FreeBSD-7.0STABLE-->FreeBSD-7.1STABLE everything goes
wrong.
1.BIND can't start anymore and giving me following message at
/var/log/messages:
.
.
.
Jan 27 12:30:20 ns kernel: ad4: 152587MB <WDC WD1600AAJS-75PSA0 05.06H05>
at ata2-master SATA150
Jan 27 12:30:20 ns kernel: acd0: CDRW <HL-DT-ST CD-RW/DVD-ROM
GCC-H30N/A101> at ata3-master SATA150
Jan 27 12:30:20 ns kernel: Trying to mount root from ufs:/dev/ad4s1a
Jan 27 12:30:21 ns savecore: no dumps found
Jan 27 12:30:21 ns named[516]: starting BIND 9.4.3-P1 -c named.conf -t
/var/named -u bind
Jan 27 12:30:21 ns named[516]: could not get query source dispatcher
(0.0.0.0#53)
Jan 27 12:30:21 ns named[516]: loading configuration: address in use
Jan 27 12:30:21 ns named[516]: exiting (due to fatal error)
Jan 27 12:30:37 ns kernel: bge0: link state changed to UP
Jan 27 12:31:07 ns kernel: Connection attempt to UDP 122.254.1x.x:53 from
209.85.146.135:9484
Jan 27 12:31:07 ns kernel: Connection attempt to UDP 122.254.1x.x:53 from
122.254.122.41:1027
Jan 27 12:31:07 ns kernel: Connection attempt to UDP 122.254.1x.x:53 from
122.254.122.45:62566
.
.
.
2.I tried to load from command line but same result:
ns# /usr/sbin/named -t /var/named/ -c named.conf -d9 -f -g
27-Jan-2009 12:56:04.632 starting BIND 9.4.3-P1 -t /var/named/ -c named.conf -d9
-f -g
27-Jan-2009 12:56:04.632 found 1 CPU, using 1 worker thread
27-Jan-2009 12:56:04.633 using up to 4096 sockets
27-Jan-2009 12:56:04.639 loading configuration from '/named.conf'
27-Jan-2009 12:56:04.640 set maximum stack size to 67108864: success
27-Jan-2009 12:56:04.640 set maximum data size to 536870912: success
27-Jan-2009 12:56:04.640 set maximum core size to 9223372036854775807: success
27-Jan-2009 12:56:04.640 set maximum open files to -1: success
27-Jan-2009 12:56:04.640 using default UDP/IPv4 port range: [49152, 65535]
27-Jan-2009 12:56:04.640 using default UDP/IPv6 port range: [49152, 65535]
27-Jan-2009 12:56:04.642 no IPv6 interfaces found
27-Jan-2009 12:56:04.642 listening on IPv4 interface bge0, 122.254.1x.x#53
27-Jan-2009 12:56:04.642 clientmgr @0x2853f000: create
27-Jan-2009 12:56:04.642 clientmgr @0x2853f000: createclients
27-Jan-2009 12:56:04.642 clientmgr @0x2853f000: create new
27-Jan-2009 12:56:04.642 client @0x28601000: create
27-Jan-2009 12:56:04.642 clientmgr @0x2853f000: createclients
27-Jan-2009 12:56:04.642 clientmgr @0x2853f000: create new
27-Jan-2009 12:56:04.642 client @0x28641000: create
27-Jan-2009 12:56:04.645 /named.conf:20: using specific query-source port
suppresses port randomization and can be insecure.
27-Jan-2009 12:56:04.646 could not get query source dispatcher (0.0.0.0#53)
27-Jan-2009 12:56:04.646 load_configuration: address in use
27-Jan-2009 12:56:04.646 loading configuration: address in use
27-Jan-2009 12:56:04.646 exiting (due to fatal error)
ns#
3.named.conf:
-----------------
acl boldsoft { 202.17x.x.x; 202.17x.x.x; 122.254.1x.x; 127.0.0.1; };
options {
directory "/etc/namedb";
auth-nxdomain yes;
listen-on { 122.254.1x.x; };
allow-query { any; };
allow-transfer { boldsoft; };
allow-recursion { any; };
version "None of your business!";
notify yes;
allow-notify { boldsoft; };
query-source address * port 53;
};
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
allow-query { any; };
file "master/localhost.rev";
};
.
.
.
4.netstat -an or sockstat -4 result:
ns# netstat -an
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 48 122.254.1x.x.22 122.254.93.23.58663 ESTABLISHED
tcp4 0 0 122.254.1x.x.63442 130.94.149.166.5999 TIME_WAIT
tcp4 0 0 122.254.1x.x.22 122.254.93.23.54514 ESTABLISHED
tcp4 0 0 122.254.1x.x.49853 128.205.32.21.5999 ESTABLISHED
tcp4 0 0 122.254.1x.x.22 122.254.93.23.53108 ESTABLISHED
tcp4 0 0 *.22 *.* LISTEN
udp4 0 0 *.514 *.*
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
c3ea3150 stream 0 0 0 c3ea32a0 0 0
c3ea32a0 stream 0 0 0 c3ea3150 0 0
c3ea3b28 stream 0 0 0 c3ea37e0 0 0
c3ea37e0 stream 0 0 0 c3ea3b28 0 0
c3ea30a8 stream 0 0 0 0 0 0
c3ea33f0 stream 0 0 0 c3ea3000 0 0
c3ea3000 stream 0 0 0 c3ea33f0 0 0
c3ea4000 stream 0 0 c3ea2114 0 0 0
/var/run/devd.pipe
c3ea3888 dgram 0 0 c4041bdc 0 0 0
/var/named/var/run/log
c3ea3930 dgram 0 0 c4041cf0 0 0 0 /var/run/log
c3ea39d8 dgram 0 0 c4041e04 0 0 0
/var/run/logpriv
c3ea3a80 dgram 0 0 c4043000 0 0 0 /var/run/log
ns# sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
balgaa sshd 792 3 tcp4 122.254.1x.x:22 122.254.93.23:58663
root sshd 789 3 tcp4 122.254.1x.x:22 122.254.93.23:58663
balgaa sshd 755 3 tcp4 122.254.1x.x:22 122.254.93.23:54514
root sshd 752 3 tcp4 122.254.1x.x:22 122.254.93.23:54514
root cvsup 748 4 tcp4 122.254.1x.x:49853 128.205.32.21:5999
balgaa sshd 734 3 tcp4 122.254.1x.x:22 122.254.93.23:53108
root sshd 718 3 tcp4 122.254.1x.x:22 122.254.93.23:53108
root sshd 632 3 tcp4 *:22 *:*
root syslogd 451 8 udp4 *:514 *:*
ns#
5./etc/rc.conf:
ns# more /etc/rc.conf
# -- sysinstall generated deltas -- # Thu May 8 23:42:32 2008
# added by xorg-libraries port
local_startup="/usr/local/etc/rc.d"
font8x14="NO"
font8x16="swiss-8x16"
font8x8="swiss-8x8"
hostname="ns.xxx.mn"
ifconfig_bge0="inet 122.254.1x.x netmask 255.255.255.224"
defaultrouter="122.254.1x.x"
keymap="us.iso"
moused_enable="YES"
moused_flags="-3"
moused_port="/dev/psm0"
moused_type="auto"
saver="logo"
sshd_enable="YES"
usbd_enable="YES"
sendmail_enable="NONE"
log_in_vain="YES"
named_enable="YES"
#named_flags="-u bind -t /etc/namedb/sandbox -c named.conf -d 9"
named_flags="-c named.conf"
#syslogd_flags="-ss -l /etc/namedb/sandbox/dev/log"
#named_pidfile="/var/named/run/named/pid" # Must set this in
named.conf as well
named_uid="bind" # User to run named as
named_chrootdir="/var/named" # Chroot directory (or ""
not to auto-chroot it)
named_chroot_autoupdate="YES" # Automatically install/update
chrooted
# components of named. See /etc/rc.d/named.
named_symlink_enable="YES" # Symlink the chrooted pid file
6.If I change port number like to 5353 then BIND start normally. I tried several
times reboot system, doesn't help too.
7.uname -a
FreeBSD ns.boldsoft.mn 7.1-STABLE FreeBSD 7.1-STABLE #2: Mon Jan 26 22:56:56
ULAT 2009 balgaa@ns.xxx.mn:/usr/obj/usr/src/sys/DNS i386
I guess problem with BIND-9.4.3-P1?
Any suggestion?
Regards,
Balgaa