From 5238937044aca8abc608f80108f7c0fa94b22fa3 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 9 Sep 2023 22:28:52 +0200 Subject: [PATCH] bundles/powerdns: do not put private ipv4 into dns if public ipv6 exists --- bundles/powerdns/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/powerdns/metadata.py b/bundles/powerdns/metadata.py index db43cee..b418636 100644 --- a/bundles/powerdns/metadata.py +++ b/bundles/powerdns/metadata.py @@ -143,7 +143,7 @@ def generate_dns_entries_for_nodes(metadata): if not ip6 and not ip.is_private: ip6 = ip - if not ip4 and found_ips['ipv4']: + if not (ip4 or ip6) and found_ips['ipv4']: # do it again, but do not filter out private addresses for ip in sorted(found_ips['ipv4']): if not ip4: