Bind listener to an IPv6 from AnyIP subnet

Mike Lewinski mlewinski at massivenetworks.com
Mon Mar 13 02:23:44 UTC 2023


This doesn't appear to be an IPv6-specific issue. In principle named should also be capable of listening on all of 127/8, but I can't find any configuration syntax that will do more than listen on 127.0.0.1. I can ping 127.0.0.2 (and so on) but even explicitly adding listen-on 127.0.0.2 won't cause named to actually listen there.


-----Original Message-----
From: bind-users <bind-users-bounces at lists.isc.org> On Behalf Of Serg via bind-users
Sent: Sunday, March 12, 2023 10:55 AM
To: bind-users at lists.isc.org
Subject: Bind listener to an IPv6 from AnyIP subnet

Hello, I am trying to bind named listener to an IPv6 from prefix which is assigned to a system via AnyIP kernel feature - basically, it is done by the following command: sudo ip -6 route add local 2001:db8::/32 dev lo.

To be able to use IPv6 from AnyIP prefix the following sysctl must be
applied: net.ipv6.ip_nonlocal_bind = 1

Having above, I am able to use any IP from AnyIP prefix in all software but named refuses to create socket, which listens to that kind of an IP address.

As an alternative approach I have tried to run with a configuration
"listen-on-v6 { any; }", but it does behave in a way I need - it binds separate socket for each discovered IP address rather wildcard address of [::].

Had anyone faced the same or similar issue?
--
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


More information about the bind-users mailing list