[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt: Uses bogus ftp password on ftp:// urls



I wrote:
> The order is important.  I believe that there was once a HOWTO floating
> around that had it wrong.

Rob Browning writes:
> Ahh, now that might have been it...

Assumming you've got 'order hosts,bind' in /etc/host.conf, gethostbyname()
grabs the first line in /etc/hosts that contains the hostname and returns
the second field as the fqdn (It pays no attention to the IP number in the
first field).  If it returns 'localhost', the caller is likely to get a bit
confused.

IMHO, this not such a great way to get the fqdn.  I'd rather put both the
hostname and the domainname in one file (such as /etc/hostname), and have
them appear nowhere else.
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: