summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.py
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-02-10 21:47:45 +0100
committerRob Crittenden <rcritten@redhat.com>2011-02-14 14:45:22 -0500
commit22c3a681da7ec5c84e8822eb325c647a8e89942a (patch)
tree83813eacd9ee4050e4430101a048ad7cd416f1d5 /ipaserver/install/bindinstance.py
parentc9431749a0078df8bdf13490daac5f3467cc1c02 (diff)
downloadfreeipa-22c3a681da7ec5c84e8822eb325c647a8e89942a.tar.gz
freeipa-22c3a681da7ec5c84e8822eb325c647a8e89942a.tar.xz
freeipa-22c3a681da7ec5c84e8822eb325c647a8e89942a.zip
Fine tuning DNS options
Add pointer to self to /etc/hosts to avoid chicken/egg problems when restarting DNS. On servers set both dns_lookup_realm and dns_lookup_kdc to false so we don't attempt to do any resolving. Leave it to true on clients. Set rdns to false on both server and client. https://fedorahosted.org/freeipa/ticket/931
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 8790427ca..ea9280b3c 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -297,6 +297,9 @@ class BindInstance(service.Service):
# get a connection to the DS
self.ldap_connect()
+ if not installutils.record_in_hosts(self.ip_address, self.fqdn):
+ installutils.add_record_to_hosts(self.ip_address, self.fqdn)
+
if not dns_container_exists(self.fqdn, self.suffix):
self.step("adding DNS container", self.__setup_dns_container)
if not dns_zone_exists(self.domain):