summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-dns-install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-06 13:26:45 +0100
committerRob Crittenden <rcritten@redhat.com>2012-03-11 22:11:41 -0400
commitc956b3cd2ba12d87054909af3dce7d231f034240 (patch)
treee810788604eb2436648de82717e114ed021394fc /install/tools/ipa-dns-install
parent79d4a34cc980da7395ab7d6184024ac2fe1fea39 (diff)
downloadfreeipa-c956b3cd2ba12d87054909af3dce7d231f034240.tar.gz
freeipa-c956b3cd2ba12d87054909af3dce7d231f034240.tar.xz
freeipa-c956b3cd2ba12d87054909af3dce7d231f034240.zip
Refresh resolvers after DNS install
Server framework calls acutil.res_send() to send DNS queries used for various DNS tests. However, once acutil is imported it does not change its list of configured resolvers even when /etc/resolv.conf is changed. This may lead to unexpected resolution issues. We should at least reload httpd when we change /etc/resolv.conf to point to FreeIPA nameserver to force a new import of acutil and thus workaround this bug until it is resolved in authconfig. https://fedorahosted.org/freeipa/ticket/2481
Diffstat (limited to 'install/tools/ipa-dns-install')
-rwxr-xr-xinstall/tools/ipa-dns-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install
index c9014371e..096020c5e 100755
--- a/install/tools/ipa-dns-install
+++ b/install/tools/ipa-dns-install
@@ -22,7 +22,7 @@
import traceback
from ipaserver.plugins.ldap2 import ldap2
-from ipaserver.install import bindinstance, ntpinstance
+from ipaserver.install import service, bindinstance, ntpinstance, httpinstance
from ipaserver.install.installutils import *
from ipaserver.install import installutils
from ipapython import version
@@ -223,6 +223,11 @@ def main():
zone_notif=options.zone_notif)
bind.create_instance()
+ # Restart http instance to make sure acutil has the right resolver
+ # https://bugzilla.redhat.com/show_bug.cgi?id=800368
+ http = httpinstance.HTTPInstance(fstore)
+ service.print_msg("Restarting the web server")
+ http.restart()
print "=============================================================================="
print "Setup complete"