[Freeipa-devel] [PATCH] ipv6 compatible way to check the hostname

Simo Sorce ssorce at redhat.com
Thu Mar 27 17:54:43 UTC 2008


This change checks the machine can resolve address using nsswitch host 
name resolution, this means we are also checking that /etc/hosts is not 
broken.

It uses IPv6 aware system functions, so this should make it also IPv6 
compatible.

It does not force to have a DNS set up correctly, but that's intentional 
as we might want to install DNS as part of the installation 
(--setup-bind) and checking DNS before installing it wouldn't really 
work :-)

It still do try to check the DNS but currently it just exists silently 
if DNS is not configured. I am not sure how to raise a warning without 
throwing an exception that would make the install script abort in this case.

It does error out if DNS is setup incorrectly.

Simo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-729-hostname-check.patch
Type: text/x-patch
Size: 4041 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080327/710938d4/attachment.bin>


More information about the Freeipa-devel mailing list