[nycbug-talk] /etc/hosts
Roland Dowdeswell
elric
Tue Feb 15 00:29:20 EST 2005
On 1108396453 seconds since the Beginning of the UNIX epoch
steve rieger wrote:
>
>hi all,
>
>
>is there a difference between these two and if so can you elaborate
>
>cat /etc/hosts
>192.10.20.25 yoyo.mama.com yoyo
>
>cat /etc/hosts
>192.10.20.25 yoyo yoyo.mama.com
Yes. getnameinfo()/gethostbyaddr() will return the first name that
appears. So, in general, you put the FQDN first unless you are in
an environment where you need name resolution to return non-FQDNs.
--
Roland Dowdeswell http://www.Imrryr.ORG/~elric/
More information about the talk
mailing list