ipv6 bind to single v6-address

Danny Mayer mayer at gis.net
Mon Jun 11 13:07:23 UTC 2007


Arul Murugan wrote:
> Hi Florian,
>                Listen-on-v6 Specifies the ports on which the server listens
> for incoming
> queries sent using IPv6. The server does not bind a separate socket to each
> IPv6 interface address as it does for IPv4. Instead, it always listens on
> the IPv6 wildcard address. Therefore, the values allowed for the
> address_match_list argument to the listen-on-v6 option are:
> • any
> • none
> Multiple listen-on-v6 options can be used to listen on
> multiple ports. For example:
> listen-on-v6 port 53 { any; };
> listen-on-v6 port 1234 { any; };
> To make the server not listen on any IPv6 address, specify
> the following:
> listen-on-v6 { none; };
> If the listen-on-v6 option is not specified, the server does not listen on
> any IPv6 address.

You are misinformed. It does not listen on the wildcard socket, it binds
to each address separately just as it does with IPv4 addresses. From the
ARM:

> A list of particular IPv6 addresses can also be specified, in which
> case the server listens on a separate socket for each specified
> address, regardless of whether the desired API is supported by the
> system.
> 
> Multiple listen-on-v6 options can be used. For example,
> 
> listen-on-v6 { any; }; listen-on-v6 port 1234 { !2001:db8::/32; any;
> };
> 
> will enable the name server on port 53 for any IPv6 addresses (with a
> single wildcard socket), and on port 1234 of IPv6 addresses that is
> not in the prefix 2001:db8::/32 (with separate sockets for each
> matched address.)
> 

Danny



More information about the bind-users mailing list