Source-Changes archive

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

Re: forcing hostname as fqdn



john heasley wrote:
A hostname is a not a FQDN, so why should gethostname() should return a
FQDN.

I agree. This is bad naming, especially when you combine it with the availability of domainname as well. And domainname is for NIS... Perhaps it would be better to construct the FQDN from hostname+"."+domainname (the dot is actually nice even when domainname is empty, it signifies there's not more to look for and it wouldn't cause any assumptions when an identical hostname is in a DNS search path, but not the identical host! Lost me yet?), and replace the NIS use of domainname with a new variable nisdomain or ypdomain?

Cheers,
--
        Thomas E. Spanjaard
        tgen%netphreax.net@localhost

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index