Bind named to 0.0.0.0 (INADDR_ANY)

Mark Andrews Mark_Andrews at isc.org
Tue Sep 30 15:51:29 UTC 2008


In message <cbf1a1340809300721j468531d5sa5da8bedb3fff47e at mail.gmail.com>, "Rich
ard Wall" writes:
> Hello,
> 
> I'm trying to get named to listen on IPv4 0.0.0.0:53 (INADDR_ANY):
>  * http://www.cs.cmu.edu/afs/cs/academic/class/15441-f01/www/assignments/P2/h
> tmlsim_split/node18.html
> 
> I've tried:
> listen-on { 0.0.0.0; };

	Which is "listen-on { 0.0.0.0/32; };" which won't match any
	interface's address.

> This gives no binding at all.
> 
> listen-on { any; };
> listen-on { localhost; };
> listen-on { localnets; };
> 
> These explicitly bind named to the configured local IP addresses.
> 
> Is there another way to do this?

	No. Named listens on individual interfaces so that the reply
	traffic comes from the correct address.
 
> Thanks in advance.
> 
> -RichardW.
> 
> System Information
>  * BIND 9.4.2-P1
>  * Linux 2.6.24
> -- 
> Richard Wall
> Support Engineer
> ApplianSys Ltd
> http://www.appliansys.com
> 
> (t) +44 (0)24 7643 0094
> (f) +44 (0)87 0762 7063
> (e) richard.wall at appliansys.com
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the bind-users mailing list