From 7baf8fecd410e5a8b64767d27a6a2848c4a00803 Mon Sep 17 00:00:00 2001 From: David Kupka Date: Tue, 2 Sep 2014 16:32:30 +0200 Subject: [PATCH] Add record(s) to /etc/host when IPA is configured as DNS server. This is to avoid chicken-egg problem when directory server fails to start without resolvable hostname and named fails to provide hostname without directory server. https://fedorahosted.org/freeipa/ticket/4220 Reviewed-By: Petr Viktorin --- ipaserver/install/installutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 6ad7106b5..335fd184b 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -488,7 +488,7 @@ def get_server_ip_address(host_name, fstore, unattended, options): hosts_record = record_in_hosts(ip_address) if hosts_record is None: - if ip_add_to_hosts: + if ip_add_to_hosts or options.setup_dns: print "Adding ["+ip_address+" "+host_name+"] to your /etc/hosts file" fstore.backup_file(paths.HOSTS) add_record_to_hosts(ip_address, host_name)