Knowledge Base ISC Main Website Ask a Question/Contact ISC
Is it possible to configure BIND to use both IPv6 and IPv4 on the same server?
Author: ISC Support Reference Number: AA-00821 Views: 45063 Created: 2012-10-26 14:48 Last Updated: 2017-10-05 12:48 0 Rating/ Voters

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.

© 2001-2018 Internet Systems Consortium

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

Feedback 2
  • #
    [ izzunix]: dns on ipv4/ipv6 2013-06-07 22:21

    I appreciate the info on this. I have ipv4/ipv6 configured both on the eth0 interface. I do have the option listen-on-v6 { any; }; in named.conf. DNS does not resolve through ipv4 just ipv6. Do you have to have separate interfaces for this to work?

  • #
    [Cathy Almond]: Re: dns on ipv4/ipv6 2013-08-29 12:18

    You shouldn't need to to configure IPv4 and IPv6 on different interfaces. The reason why this isn't working for you is probably something else in your network environment, for example IPv6 routing. You're also going to have problems if the IPv6 address on your interface is only a link local one. See and (both loosely related to this question).

    For more troubleshooting/assistance, you might want to register for and ask the bind-users community:

Quick Jump Menu