On Fri, Sep 06, 2013 at 10:56:26PM +0200, Vincent Lefevre wrote:
> > 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.

But the second sentence in the same paragraph explicitely explains what is 
meant by "all". 

> 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).

It seems getifaddrs() does not return anything but 127.0.0.1.

> 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.

dig doesn't use /etc/hosts, does it? hostname uses getnameinfo() which does
take /etc/hosts into account, too.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to