summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.py
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2016-06-08 18:22:57 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-17 18:55:19 +0200
commitdb882ae8d6eba768e08be9317e386f8ab3c8fcf7 (patch)
tree7c393cda72a8aa4608a908166f28a133cbde0bf6 /ipaserver/install/bindinstance.py
parentd8ae2b4055284de8c1baf76819d6611978f83cc6 (diff)
downloadfreeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.tar.gz
freeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.tar.xz
freeipa-db882ae8d6eba768e08be9317e386f8ab3c8fcf7.zip
delegate removal of master DNS record and replica keys to separate functions
https://fedorahosted.org/freeipa/ticket/5588 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 188f3dc0e..08c32f483 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -538,6 +538,12 @@ def check_forwarders(dns_forwarders, logger):
return forwarders_dnssec_valid
+def remove_master_dns_records(hostname, realm):
+ bind = BindInstance()
+ bind.remove_master_dns_records(hostname, realm, realm.lower())
+ bind.remove_server_ns_records(hostname)
+
+
class DnsBackup(object):
def __init__(self, service):
self.service = service