|
From: | Simon Josefsson |
Subject: | Re: [bug-inetutils] dnsdomainname, domainname, nisdomainname, ypdomainname |
Date: | Wed, 14 Mar 2012 08:43:50 +0100 |
User-agent: | Gnus/5.130003 (Ma Gnus v0.3) Emacs/24.0.94 (gnu/linux) |
Mats Erik Andersson <address@hidden> writes: > The test script is problematic: > > a) There is no requirement that the name of any single computer > is set to something that is resolvable by DNS or any other > method. If that information is lacking, then "dnsdomainname" > fails with "cannot determine host name", and the test script > gives a false negative. This happens for me with NetBSD being > used with Qemu. > > b) A particular system may be legally set up in a manner that > a non-fully qualified host name is returned by xgethostname() > and ensuing resolution. This can be accomplished by > > # /etc/hosts > 10.0.1.1 dag dag.utan.ljus > > # /etc/nsswitch.conf > hosts files dns > > $ hostname > dag > > Thus "dnsdomainname" fails with "cannot qualify host name: dag", > again producing a false negative in the test script. This happened > to be the case on my OpenSolaris/OpenIndiana systems! > > The test script should report "skipping" in either of the above cases. You are right. I pushed a patch that should make the self-test pass, however it would nice to improve it eventually to other error situations (I've added a FIXME discussing this). I can't think of any easy way to do that in a portable way though. /Simon
[Prev in Thread] | Current Thread | [Next in Thread] |