diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2015-10-12 16:24:50 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-22 18:36:17 +0200 |
commit | c43dce3a61e17791cc31f45498bae2d52edcf969 (patch) | |
tree | 1a3376c39705d44c166f7238809afaf7ccf3b301 /ipaserver/install/bindinstance.py | |
parent | 6417931a9fd319166d1827d886843a4abb5c4820 (diff) | |
download | freeipa-c43dce3a61e17791cc31f45498bae2d52edcf969.tar.gz freeipa-c43dce3a61e17791cc31f45498bae2d52edcf969.tar.xz freeipa-c43dce3a61e17791cc31f45498bae2d52edcf969.zip |
always ask the resolver for the reverse zone when manipulating PTR records
Instead of searching for all zones to identify the correct reverse zone, we
will first ask the resolver to return the name of zone that should contain the
desired record and then see if IPA manages this zone.
This patch also removes a duplicate function in bindinstance.py that is not
used anywhere.
https://fedorahosted.org/freeipa/ticket/5200
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r-- | ipaserver/install/bindinstance.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 1ba744221..0bc0557cc 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -276,8 +276,6 @@ def find_reverse_zone(ip_address, api=api): return None -def get_reverse_zone(ip_address): - return find_reverse_zone(ip_address) or get_reverse_zone_default(ip_address) def read_reverse_zone(default, ip_address): while True: |