Bind to INADDR_ANY

Phil Mayers p.mayers at imperial.ac.uk
Tue Jan 10 10:35:17 UTC 2012


On 01/10/2012 01:12 AM, Bostjan Skufca wrote:
> Hi everyone,
>
> is binding to all interfaces at once already supported in bind9? I know
> named binds to each at-the-moment-available IP address but in HA
> environment with virtual interfaces a "rndc reload" is necessary for
> named to pick up a new interface, which leaves a bit of a window of
> unavailable service.

I don't believe so. AIUI, bind "binds" to each IP separately so that a) 
the received file descriptor tells you the destination IP of the query 
and therefore b) you can reply from the same IP.

There are other ways to do this, but this is probably the simplest 
cross-platform method.

It would be nice if, to supplment this, bind had some cross-platform 
code to get timely notifications of changes in the list of IPs (e.g. 
listen on a netlink socket on Linux) so you don't want half an hour, 
absent an "rndc reconfig".



More information about the bind-users mailing list