-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03-Jul-2002/20:53 -0400, Jay Daniels <[EMAIL PROTECTED]> wrote: >On Wed, 2002-07-03 at 19:57, Emmanuel Seyman wrote: >> On Wed, Jul 03, 2002 at 07:27:46PM -0400, Jay Daniels wrote: >> > >> > Then why is the structure of the /etc/hosts backward from any unix book >> > I have ever read? >> >> You have a structure different from: >> >> IP_address FQDN alias1 alias2 >> >> Emmanuel >> >> >> > >Correct > >IP_address hostname FQDN <add more aliases here like: www mail ftp>
The man page I quoted was written for Debian GNU/Linux, but was shipped with my RHL72 system. It specifies the same format as an AIX document found at <http://www.unet.univie.ac.at/aix/files/aixfiles/hosts.htm>, a FreeBSD man page <http://pluto.iis.nsk.su/cgi-bin/man-cgi?hosts+5>, and a BSD man page at <http://www.neosoft.com/neosoft/man/hosts.5.html>. Since this file was written to work with the Berkeley TCP/IP stack, I see the BSD documentation as the most authoritative source, other than the source of the resolver itself. I was unable to find a single source that specified the format you describe. Every source I found was either vague or specified the format that is described in the BSD, AIX, and Linux documentation: IP_ADDRESS FQDN Alias1 Alias2 Alias_n The Solaris man page I found gave this definition: IP-address official-host-name nicknames... But gave this example: 192.9.1.20 gaia # John Smith Obviously the given example assumes that the resolver will be able to find the host in its configured set of search domains. Any host outside of those domains would have to be specified using its FQDN. The man page does not specifically address the FQDN, but it seems clear that if the given format is used for all cases, then the FQDN would have to be used as the "official-host-name". Any other interpretation would imply that the FQDN would be treated as a "nickname", and that is simply not credible. If you can find an online reference that specifies the format that you describe, please post it. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D iD8DBQE9I+GppCpg3WyUI50RArvBAJwOWxW7+fWXH5KkqocLVlJWs6YSEACfYrBh gEF/0jkrG6y+vSlwzD593H0= =9RUB -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list