summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.py
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-06-28 13:53:58 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-29 14:19:59 +0200
commit7be50ea7150b36adf9051fc1003dd36f61d68451 (patch)
tree0320353c35fe050b7defbe56069e8c87a240d4a6 /ipaserver/install/bindinstance.py
parent1802f7a2258c793d11c7a9c2a4786cea42b9b058 (diff)
downloadfreeipa-7be50ea7150b36adf9051fc1003dd36f61d68451.tar.gz
freeipa-7be50ea7150b36adf9051fc1003dd36f61d68451.tar.xz
freeipa-7be50ea7150b36adf9051fc1003dd36f61d68451.zip
Use NSS for name->resolution in IPA installer
This fixes scenarios where IPA server is not able to resolve own name and option --ip-address was not specified by the user. This partially reverts changes from commit dc405005f537cf278fd6ddfe6b87060bd13d9a67 https://fedorahosted.org/freeipa/ticket/5962 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 2bc753883..6b266edaa 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -870,9 +870,7 @@ class BindInstance(service.Service):
if fqdn == self.fqdn:
continue
- addrs = dnsutil.resolve_ip_addresses(fqdn)
- # hack, will go away with locations
- addrs = [str(addr) for addr in addrs]
+ addrs = installutils.resolve_ip_addresses_nss(fqdn)
root_logger.debug("Adding DNS records for master %s" % fqdn)
self.__add_master_records(fqdn, addrs)