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: