mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
PTR records can be added without specify FQDN zone name
Now adding PTR records will accept zones both with and without end dot. Ticket: https://fedorahosted.org/freeipa/ticket/4151 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
daf2d64f83
commit
1adeb68182
@ -2149,6 +2149,9 @@ class dnsrecord(LDAPObject):
|
||||
addr = u''
|
||||
else:
|
||||
addr = keys[-1]
|
||||
|
||||
zone = normalize_zone(zone)
|
||||
|
||||
zone_len = 0
|
||||
for valid_zone in REVERSE_DNS_ZONES:
|
||||
if zone.endswith(valid_zone):
|
||||
|
Loading…
Reference in New Issue
Block a user