Subject: Re: forcing hostname as fqdn
To: john heasley <heas@shrubbery.net>
From: Thomas E. Spanjaard <tgen@netphreax.net>
List: source-changes
Date: 05/30/2006 23:40:41
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2D62F3B029AE4FDCE5BA6BC8
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------enig2D62F3B029AE4FDCE5BA6BC8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFEfNf86xCMwBJ+1+sRA7fVAJ9xNxLOLaDC1bgFm9YxS9EcYtIqGwCfb9pI
KIerHDwn82FzgIfiZHLT2xc=
=hA78
-----END PGP SIGNATURE-----

--------------enig2D62F3B029AE4FDCE5BA6BC8--