summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/installutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r--ipaserver/install/installutils.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 5fb2bb29f..42df2b711 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -195,12 +195,18 @@ def verify_fqdn(host_name, no_host_dns=False, local_hostname=True):
revname = socket.gethostbyaddr(address)[0]
except Exception, e:
root_logger.debug('Check failed: %s', e)
- raise HostReverseLookupError("Unable to resolve the reverse ip address, check /etc/hosts or DNS name resolution")
+ raise HostReverseLookupError(
+ "Unable to resolve the IP address %s to a host name, "
+ "check /etc/hosts and DNS name resolution" % address)
root_logger.debug('Found reverse name: %s', revname)
if revname != host_name:
- raise HostReverseLookupError("The host name %s does not match the reverse lookup %s" % (host_name, revname))
+ raise HostReverseLookupError(
+ "The host name %s does not match the value %s obtained "
+ "by reverse lookup on IP address %s"
+ % (host_name, revname, address))
verified.add(address)
+
def record_in_hosts(ip, host_name=None, conf_file=paths.HOSTS):
"""
Search record in /etc/hosts - static table lookup for hostnames