mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Include information on where to look if a hostname resolves to localhost.
442812
This commit is contained in:
parent
9fe649b804
commit
ae641ed31b
@ -58,7 +58,7 @@ def verify_fqdn(host_name):
|
||||
|
||||
for a in hostaddr:
|
||||
if a[4][0] == '127.0.0.1' or a[4][0] == '::1':
|
||||
raise RuntimeError("The IPA Server hostanme cannot resolve to localhost (%s), a routable IP address must be used." % a[4][0])
|
||||
raise RuntimeError("The IPA Server hostname cannot resolve to localhost (%s). A routable IP address must be used. Check /etc/hosts to see if %s is an alias for %s" % (a[4][0], host_name, a[4][0]))
|
||||
try:
|
||||
revname = socket.gethostbyaddr(a[4][0])[0]
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user