Listen on all interfaces

Pete Ehlke pde at ehlke.net
Wed Dec 17 22:44:24 UTC 2003


On Thu, Dec 18, 2003 at 12:28:07AM +0200, Oren Held wrote:
> Hi,
> 
> I want my bind(9.2.3) to listen to all the interfaces - thus I do NOT
> include a "listen-on" line.
> However what it actually does is listen to EACH interface - which might
> sound fine at first thought - this means it listens to all the
> interfaces.
> 
> However, when I create a new interface I'd have to restart bind so it'll
> listen to it as well (I need it for HA reasons, sometimes I need to use
> another IP on the same machine). Unlike bind, most of the daemons I know
> don't listen to a specific interface.
> 
> That's how it looks from lsof:
> 
> bind-style stuff which listen to EACH interface:
> named   213 bind   20u  IPv4    361       UDP localhost:domain 
> named   213 bind   22u  IPv4    363       UDP other_interface:domain 
> 
> Other daemons (the good behaviour..)
> ntpd      1091   root    4u  IPv4   3081       UDP *:ntp
> 
> 
> What do you think? Is it a 'bug'?
> 
Nope. I think you missed the documentation for interface-interval{}

interface-interval 
The server will scan the network interface list every interface-interval
minutes. The default is 60 minutes. If set to 0, interface scanning will
only occur when the configuration file is loaded. After the scan,
listeners will be started on any new interfaces (provided they are
allowed by the listen-on configuration). Listeners on interfaces that
have gone away will be cleaned up. 


-Pete


More information about the bind-users mailing list