Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

named unable to bind to address?



I've been working on a machine that's been running -current for a while
now.  It seems that after the latest BIND updates, 'named' has trouble
binding to an external IP address at which to listen for queries when
starting up after a reboot.

$ uname -a
NetBSD brenowin.reltuk.net 7.99.21 NetBSD 7.99.21 (BRENOWIN) #5: Mon
Aug 17 09:35:54 CDT 2015
sysop%brenowin.reltuk.net@localhost:/d0/build/current/obj/i386/sys/arch/i386/compile/BRENOWIN
i386

The following is relevant excerpt from "/var/log/messages":

[...]
Aug 17 10:04:34 brenowin named[611]: found 4 CPUs, using 4 worker threads
Aug 17 10:04:34 brenowin named[611]: using 2 UDP listeners per interface
Aug 17 10:04:34 brenowin named[611]: using up to 4096 sockets
Aug 17 10:04:34 brenowin named[611]: loading configuration from '/etc/named.conf'
Aug 17 10:04:34 brenowin named[611]: reading built-in trusted keys from file 'bind.keys'
Aug 17 10:04:34 brenowin named[611]: max open files (3404) is smaller than max sockets (4096)
Aug 17 10:04:34 brenowin named[611]: using default UDP/IPv4 port range: [49152, 65535]
Aug 17 10:04:34 brenowin named[611]: listening on IPv4 interface bge1, x.y.z.q#53
Aug 17 10:04:34 brenowin named[611]: could not listen on UDP socket: address not available
Aug 17 10:04:34 brenowin named[611]: creating IPv4 interface bge1 failed; interface ignored
Aug 17 10:04:34 brenowin named[611]: listening on IPv4 interface lo0, 127.0.0.1#53
Aug 17 10:04:34 brenowin named[611]: generating session key for dynamic DNS
[...]

In this state, 'ps' shows 'named' running, and one can watch incoming
queries, but no replies are ever sent.

If I log into the machine and restart 'named' manually, it starts working.

I tried putting in an "@reboot" cron job to wait a couple of minutes and
restart 'named', but that seems to have no effect.  Perhaps wait longer?
But that's just an attempted workaround.

Suggestions?

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index