Re: IPv6 logging noise
Philip Prindeville via bind-users <[email protected]> Thu, 11 Dec 2025 13:48:41 -0700
| Newsgroups | gmane.network.dns.bind9.user,gmane.network.dns.bind.user |
|---|---|
| Message-ID | <[email protected]> |
> On Nov 20, 2025, at 4:04 PM, Doug Freed <[email protected]> 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@OpenWrt2:/etc/init.d# root@OpenWrt2:/etc/init.d# sed -n -e 25p /etc/bind/named.conf query-source-v6 { none; }; // no IPv6 logging noise root@OpenWrt2:/etc/init.d# -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list.