From 1adeb681827118c17e722be479812b941588ac94 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Fri, 31 Jan 2014 16:30:31 +0100 Subject: 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 --- ipalib/plugins/dns.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit