RE: hosts file format

  • From: "Chitale, Hemant Krishnarao" <Hemant.Chitale@xxxxxx>
  • To: <greg@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 9 Sep 2011 10:05:40 +0800

Just goes to show how definitions/names vary :

From the man page (hosts(5)) on RHEL AS4 U4 :

DESCRIPTION
       This manual page describes the format of the /etc/hosts file. This file 
is a simple text file
       that associates IP addresses with hostnames, one line per IP address. 
For each host a  single
       line should be present with the following information:

              IP_address canonical_hostname aliases

 
Doesn't say "Official host name" but "canonical_hostname" and then doesn't 
bother explaining what this term means.

It does explain "aliases" with :
        Aliases  provide  for  name changes,  alternate  spellings,  shorter 
hostnames, or generic hostnames (for example, local-
       host).
 
Hemant K Chitale 

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Greg Rahn
Sent: Thursday, September 08, 2011 11:09 PM
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



This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.
--
//www.freelists.org/webpage/oracle-l


Other related posts: