From c956b3cd2ba12d87054909af3dce7d231f034240 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 6 Mar 2012 13:26:45 +0100 Subject: 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 --- install/tools/ipa-replica-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/tools/ipa-replica-install') diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install index e4e4a8d84..65f5229df 100755 --- a/install/tools/ipa-replica-install +++ b/install/tools/ipa-replica-install @@ -456,13 +456,13 @@ def main(): service.print_msg("Restarting the KDC") krb.restart() + if options.setup_dns: + install_bind(config, options) + # Restart httpd to pick up the new IPA configuration service.print_msg("Restarting the web server") http.restart() - if options.setup_dns: - install_bind(config, options) - # Call client install script try: args = ["/usr/sbin/ipa-client-install", "--on-master", "--unattended", "--domain", config.domain_name, "--server", config.host_name, "--realm", config.realm_name] -- cgit