Listening on all interfaces - Bind 9.1.0

Roy Arends Roy.Arends at nominum.com
Mon Mar 19 02:41:47 UTC 2001


On Sun, 18 Mar 2001, Scott Nolde wrote:

> I've got a tunnel to the freenet6.net 6bone over a sit interface on my
> linux box.  When I start bin-9.1.0, I get the following messages:
> Mar 18 18:13:31 gw named[29525]: starting BIND 9.1.0 -c /etc/named.conf
> -n 1 -u root 
> Mar 18 18:13:31 gw named[29525]: using 1 CPU 
> Mar 18 18:13:31 gw named[29527]: loading configuration from
> '/etc/named.conf' 
> Mar 18 18:13:31 gw named[29527]: the default for the 'auth-nxdomain'
> option is now 'no' 
> Mar 18 18:13:31 gw named[29527]: listening on IPv4 interface lo,
> 127.0.0.1#53 
> Mar 18 18:13:31 gw named[29527]: listening on IPv4 interface eth0,
> 24.163.52.118#53 
> Mar 18 18:13:31 gw named[29527]: listening on IPv4 interface eth1,
> 192.168.10.1#53 
> Mar 18 18:13:31 gw named[29527]: running 
> 
> How do I make bind listen on all interfaces?  This is a simple
> caching-only nameserver.

options {
	directory "/var/named";
	listen-on { any; }; // This is the default, redundant entry
	listen-on-v6 { any; }; // 
	};

This makes your name-server listen on all interfaces, both IPv4 and IPv6. 
By default, the name-server listens on all IPv4 interfaces and no IPv6
interfaces.

> /etc/named.conf:
> // Config file for caching only name server
> 
> options {
>         directory "/var/named";
> 
>         // Uncommenting this might help if you have to go through a
>         // firewall and things are not working out.  But you probably
>         // need to talk to your firewall admin.
> 
>         // query-source port 53;
> };
> 
> zone "." {
>         type hint;
>         file "root.hints";
> };
> 
> zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "127.0.0";
> };
> 
> 
> 
> Thanks,
> Scott

Regards,

Roy Arends
Nominum



More information about the bind-users mailing list