Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: bse@rho199.mtek.chalmers.se (Forskningsing MDC)
Subject: Re: hosts file quark in 5.1a
Date: 31 Oct 2002 12:37:20 GMT	[thread overview]
Message-ID: <apr860$sd4$1@nyheter.chalmers.se> (raw)
In-Reply-To: 4757b87a.0210291409.3bd49484@posting.google.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

In article <4757b87a.0210291409.3bd49484@posting.google.com>,
	swhatley@hal-pc.org (Steven Whatley) writes:
>Hi all,
>
>We found an interesting problem in our hosts file.  We are going
>through the process upgrading from Tru64 v4.0f to 5.1a.  For some
>strange reason after upgrading to v5.1a, some hostnames in the hosts
>file were not being recognized.
>The nemes and IPs have been changed to protect the innocient.
>
< parts snipped >
>
>It seems that any entry after a line that had leading 0's in the IP
>address was not recognized.  When we got rid if the leading 0's in
>hplj3's IP adress, the
>host myunixbox was recognized.  
>
>206.133.19.18   hpjl3 

If there is a leading 0 in part of the IP adress, that part is interpreted
as an octal number. 
The use of four decimal numbers as an IP adress is by convention only

The following presentations of IP adresses are equivalent
(On Tru64 4.0f at least)

206.133.19.18
206.133.023.022
206.133.4882
3464827666
206.133.19.0x12

>
>Now why were the leading zeros in there in the first palce, I have no
>clue.  But the problem has not been noticed on our Tru64 4.0g or
>lower, IRIX, and HP-UX  11.0 systems, all of which have the exact same
>/etc/hosts file.
>
>Has anyone else came across this?
>
>Thanks,
>Steven

-- 
B�rje Sennung
IT-chef Maskinsektionen       Telefon: +46 31 - 772 37 06
Chalmers Tekniska H�gskola    Fax    : +46 31 - 772 11 92
412 96 G�teborg Sweden        E-mail : bse@me.chalmers.se



      reply	other threads:[~2002-10-31 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 22:09 hosts file quark in 5.1a Steven Whatley
2002-10-31 12:37 ` Forskningsing MDC [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox