IPv6 logging noise
Doug Freed
dwfreed at isc.org
Thu Dec 11 20:54:06 UTC 2025
On 12/11/25 14:48, Philip Prindeville wrote:
>
>
>> On Nov 20, 2025, at 4:04 PM, Doug Freed <dwfreed at isc.org> wrote:
>>
>> On 11/20/25 11:07, Philip Prindeville via bind-users wrote:
>>> Hi,
>>> I’m on a US residential ISP, and they don’t support IPv6. As a result, I’ve disabled it locally as well with `options { listen-on-ipv6 { none; }; };`. Well, there are more options than that, but that’s the relevant one.
>>> If I run with `-4` then the noise goes away.
>>> I was wondering if:
>>> (1) that `listen-on-ipv6 { none;}` should imply `-4` (the simplest) or
>>> (2) that there’s an easy way to parse and dump the options so my startup script can see if this option is set or not, and if it, add `-4` to the arguments it uses to start up named.
>>> I ask the second question because of the format of the config file, newlines and spaces are arbitrary so there’s no single canonical format I can search for.
>>> Thanks,
>>> -Philip
>>
>> Starting with 9.20.5, you can use `query-source-v6 { none; };` to disable IPv6 for upstream queries. Thus `-4` effectively becomes:
>>
>> listen-on-v6 { none; };
>> query-source-v6 { none; };
>>
>> The difference is that the config settings can be changed at runtime with a reload, whereas changing the state of `-4` requires restarting named.
>>
>> -Doug
>
>
> Not working for me:
>
>
> Dec 11 13:47:03 OpenWrt2 named[32377]: the initial working directory is '/'
> Dec 11 13:47:03 OpenWrt2 named[32377]: loading configuration from '/etc/bind/named.conf'
> Dec 11 13:47:03 OpenWrt2 named[32377]: the working directory is now '/tmp/cache/bind'
> Dec 11 13:47:03 OpenWrt2 named[32377]: /etc/bind/named.conf:25: expected one address and/or port
> Dec 11 13:47:03 OpenWrt2 named[32377]: loading configuration: unexpected token
> Dec 11 13:47:03 OpenWrt2 named[32377]: exiting (due to fatal error)
> root at OpenWrt2:/etc/init.d# root at OpenWrt2:/etc/init.d# sed -n -e 25p /etc/bind/named.conf
> query-source-v6 { none; }; // no IPv6 logging noise
> root at OpenWrt2:/etc/init.d#
Sorry, minor syntax error. Should be 'query-source-v6 none;' (no braces)
-Doug
More information about the bind-users
mailing list