Is it possible to configure BIND to use both IPv6 and IPv4 on the same server?
  • 12 Oct 2018
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Is it possible to configure BIND to use both IPv6 and IPv4 on the same server?

  • Dark
    Light
  • PDF

Article Summary

By default, BIND (prior to version 9.10) does not listen for client queries on IPv6, but you can enable it by adding this option:

listen-on-v6 { any; };

This will cause named to listen on all IPv4 and IPv6 configured interfaces.

listen-on-v6 default changed in BIND 9.10
The default none; setting for listen-on-v6 was changed in BIND version 9.10. Now listen-on-v6 { any; }; is the default. It can be overridden with the named -4 command line option.

By default, BIND will use both IPv4 and IPv6 transport (if available) when performing recursion
When named is performing recursion, it will learn the names and addresses (both A and AAAA RRsets) for nameservers authoritative for domains that might be able to provide the answers to client queries. If IPv6 transport is available, then named will try both the IPv6 and IPv4 addresses that it has learned when contacting those authoritative servers, and for determining which are the fastest servers to respond. This behavior can be overridden with the named -4 command line option, which will cause named to only use IPv4 when performing recursion.