From ecdde04e63277e2bed8d1d861470de80ab0f49e1 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 28 Nov 2023 17:26:41 +1100 Subject: [PATCH] Zone transfers should honour -4 and -6 options Check if the address family has been disabled when transferring zones. --- lib/dns/zone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 16afcc7b879..a28cd78a432 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -14150,6 +14150,10 @@ again: curraddr = dns_remote_curraddr(&zone->primaries); isc_netaddr_fromsockaddr(&primaryip, &curraddr); + if (isc_sockaddr_disabled(&curraddr)) { + goto skip_primary; + } + /* * First, look for a tsig key in the primaries statement, then * try for a server key. -- 2.47.3