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

Bug#65041: hostname: hostname does not allow numeric hostnames



Hello

You digged up one old bug.. :)

On 2004-07-16 GOTO Masanori wrote:
> > /etc/hostname:
^^^ should be /etc/hosts of course

> > # hostname -f
> > 2290
> > # hostname -f

> You can see that the FQDN is resolved by gethostbyname() when 
> you use "hostname -f".
Yes, the question was more, is "hostname" supposed to take /etc/hosts
into consideration (-> bug) or may it only use the DNS (-> no bug)
if "/etc/nsswitch.conf" says "hosts: files dns".

bye,

-christian-

Attachment: pgpBMNg8bVKFe.pgp
Description: PGP signature


Reply to: