[Hostname-devel] Bug#718393: Bug#718393: hostname --all-fqdns is broken: doesn't list the FQDN

Vincent Lefevre vincent at vinc17.net
Fri Sep 6 20:56:26 UTC 2013


On 2013-09-06 11:55:12 +0200, Michael Meskes wrote:
> On Wed, Jul 31, 2013 at 04:58:08AM +0200, Vincent Lefevre wrote:
> > $ hostname --fqdn
> > xvii.vinc17.org
> > 
> > $ hostname --all-fqdns
> > xvii.local
> > ...
> 
> I beg your pardon, I cannt see the bug here.
> 
> hostname(1) clearly says:
> 
> --all-fqdns
>               Displays all FQDNs of the machine. This option enumerates all configured network addresses on all configured network interfaces,  and
>               translates  them  to  DNS domain names. Addresses that cannot be translated (i.e. because they do not have an appropriate reverse DNS
>               entry) are skipped. Note that different addresses may resolve to the same name, therefore the output may contain  duplicate  entries.
>               Do not make any assumptions about the order of the output.
> 
> So it apparently does what it claims to do. What am I missing?

The bug is in the documentation too, which has contradictions.
For instance, "Displays all FQDNs of the machine." is plainly
wrong here, since xvii.vinc17.org is a FQDN of the machine, but
is not listed.

Moreover "all configured network addresses" is ambiguous: though
for lo, 127.0.0.1 is the default address, all 127.* addresses
correspond to the same interface, and they may have their own
FQDN too (in particular, 127.0.1.1 in Debian).

I also wonder what it means by "reverse DNS entry". If I use
"dig -x <IP_address_of_xvii.local>", I don't get any name.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Hostname-devel mailing list