RE: hosts file format

  • From: "Mark W. Farnham" <mwf@xxxxxxxx>
  • To: <greg@xxxxxxxxxxxxxxxxxx>, <niall.litchfield@xxxxxxxxx>
  • Date: Thu, 8 Sep 2011 11:50:03 -0400

nods. and the hosts(4) man page from SunOS 5.10 has the breadcrumbs back to
the standards, which have been updated to include IPv6. Interestingly it
uses "nicknames" in place of "aliases," which variation in man pages I take
to be a subtle joke in that they are nicknames/aliases for each other.
Everything I've seen says single line, but I have not digested the standards
to see what parsing rule is in there. It sure makes sense to me to keep it
to a single line, although a lot of the standards I worked with snuck in
some line continuation syntax in deference to the former popularity of hard
copy manuals, documentation, and fixed character font printers.

RFC 921, RFC 1884, RFC 952 and RFC 1123 are all referenced, as well as
several "see also" references to more man pages, and I have not exhausted
the possibly recursive "see also" link search.

mwf

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Greg Rahn
Sent: Thursday, September 08, 2011 11:09 AM
To: niall.litchfield@xxxxxxxxx
Cc: ORACLE-L
Subject: Re: hosts file format

Yes - see manpage for hosts:
$ man hosts

DESCRIPTION
     The hosts file contains information regarding the known hosts on the
network.  For each host *a single line* should be present with the following
     information:

           Internet address
           Official host name
           Aliases



On Thu, Sep 8, 2011 at 7:45 AM, Niall Litchfield
<niall.litchfield@xxxxxxxxx>
wrote:
> Does anyone here know if the habit of various oracle products to 
> require
the
> hosts file format to be in the form
> XXX.XXX.XXX.XXX     HOSTNAME.DOMAINNAME  HOSTNAME <any aliases>
>
> reflects an industry standard anywhere. I've come across a large 
> number of systems now where you find lines like
>
> XXX.XXX.XXX.XXX     HOSTNAME  HOSTNAME.DOMAINNAME <any aliases>
> or
> XXX.XXX.XXX.XXX     HOSTNAME.DOMAINNAME  HOSTNAME
> XXX.XXX.XXX.XXX     <alias1>
> XXX.XXX.XXX.XXX     <alias2>
>
> and so on.
>
> RFC 952 (which admittedly dates from when I was still in full time
> education!) doesn't seem to specify the format oracle seems to 
> prefer/require or even one line per ip address (though that seems 
> sensible to me).

--
Regards,
Greg Rahn
http://structureddata.org


--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: