summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-01-31 16:30:31 +0100
committerMartin Kosek <mkosek@redhat.com>2014-02-11 16:33:53 +0100
commit1adeb681827118c17e722be479812b941588ac94 (patch)
treec3a47156fee8470f38de13f7ed039d81329f333f
parentdaf2d64f83c4bd4d0fe60323f51d63e8355652b7 (diff)
downloadfreeipa.git-1adeb681827118c17e722be479812b941588ac94.tar.gz
freeipa.git-1adeb681827118c17e722be479812b941588ac94.tar.xz
freeipa.git-1adeb681827118c17e722be479812b941588ac94.zip
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>
-rw-r--r--ipalib/plugins/dns.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 57322e9b..afd47be3 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -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):