From cf62658e19c291c4a77606737ca131d20c1d263c Mon Sep 17 00:00:00 2001 From: Tom Hetmer Date: Thu, 10 Sep 2020 01:18:07 +0700 Subject: [PATCH] do not fail with wildcard PTRs --- powerdnsadmin/routes/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/routes/domain.py b/powerdnsadmin/routes/domain.py index 9aaad31..3ba1f55 100644 --- a/powerdnsadmin/routes/domain.py +++ b/powerdnsadmin/routes/domain.py @@ -91,7 +91,7 @@ def domain(domain_name): # If it is reverse zone and pretty_ipv6_ptr setting # is enabled, we reformat the name for ipv6 records. if Setting().get('pretty_ipv6_ptr') and r[ - 'type'] == 'PTR' and 'ip6.arpa' in r_name: + 'type'] == 'PTR' and 'ip6.arpa' in r_name and '*' not in r_name: r_name = dns.reversename.to_address( dns.name.from_text(r_name))