mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Always add /etc/hosts record when DNS is being configured.
This was done previosly but accidentally removed when later with patch for ticket #3575. https://fedorahosted.org/freeipa/ticket/4817 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Kosek
parent
bc5b13c3da
commit
3c69435c1b
@@ -491,7 +491,7 @@ def get_server_ip_address(host_name, fstore, unattended, setup_dns, ip_addresses
|
||||
hosts_record = record_in_hosts(str(ip_address))
|
||||
|
||||
if hosts_record is None:
|
||||
if ip_add_to_hosts:
|
||||
if ip_add_to_hosts or setup_dns:
|
||||
print "Adding ["+str(ip_address)+" "+host_name+"] to your /etc/hosts file"
|
||||
fstore.backup_file(paths.HOSTS)
|
||||
add_record_to_hosts(str(ip_address), host_name)
|
||||
|
||||
Reference in New Issue
Block a user