mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-28 22:15:40 +00:00
Merge pull request #814 from TomHetmer/master
do not fail with wildcard PTRs
This commit is contained in:
commit
b12377796b
@ -91,7 +91,7 @@ def domain(domain_name):
|
|||||||
# If it is reverse zone and pretty_ipv6_ptr setting
|
# If it is reverse zone and pretty_ipv6_ptr setting
|
||||||
# is enabled, we reformat the name for ipv6 records.
|
# is enabled, we reformat the name for ipv6 records.
|
||||||
if Setting().get('pretty_ipv6_ptr') and r[
|
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(
|
r_name = dns.reversename.to_address(
|
||||||
dns.name.from_text(r_name))
|
dns.name.from_text(r_name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user