bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug in hostname


From: Paul Jarc
Subject: Re: bug in hostname
Date: Sat, 24 Jan 2004 19:14:53 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

address@hidden (Bob Proulx) wrote:
> But the -f, --fqdn in particular must use DNS if the real hostname
> is not already fully qualified.

Well, that's one way it can try to go about it.  There's also
getdomainname(), on systems that have it, or uname().  One might also
argue that it would be reasonable to just fail or give the short name
- i.e., it's the admin's responsibility to make "hostname -f" work, by
setting the kernel's hostname to the fqdn.

> This is one of the reasons that personally I prefer setting the
> hostname to the fully qualifed domain name.  It just seems cleaner.
> There is no ambiguity.

Yep.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]