From nobody@FreeBSD.org  Wed Dec  6 06:44:07 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 2BC7437B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Dec 2000 06:44:07 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eB6Ei7B49205;
	Wed, 6 Dec 2000 06:44:07 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200012061444.eB6Ei7B49205@freefall.freebsd.org>
Date: Wed, 6 Dec 2000 06:44:07 -0800 (PST)
From: kewarken@qnx.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: address like 10.51 (meaning 10.0.0.51) does not work in hosts file
X-Send-Pr-Version: www-1.0

>Number:         23327
>Category:       misc
>Synopsis:       address like 10.51 (meaning 10.0.0.51) does not work in hosts file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 06 06:50:01 PST 2000
>Closed-Date:    Mon Dec 18 13:10:45 PST 2000
>Last-Modified:  Mon Dec 18 13:12:26 PST 2000
>Originator:     Kris Warkentin
>Release:        4.1
>Organization:
QNX
>Environment:
FreeBSD node207.qnx.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Thu Jul 27 04:44:16
GMT 2000     root@usw4.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
if you have an entry like 10.51 in your hosts file, lookups will not
work
>How-To-Repeat:
bash-2.04$ cat /etc/hosts | grep "node6[0-3] "
10.0.0.60               node60 techhome
10.61           node61 tech
10.0.0.62               node62 techsrc-old
10.0.0.63               node63 joe3
bash-2.04$ ping -c 1 node63
PING node63 (10.0.0.63): 56 data bytes
^C
--- node63 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
bash-2.04$ ping -c 1 node61
ping: cannot resolve node61: Unknown host
bash-2.04$ 
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Dec 18 13:10:45 PST 2000 
State-Changed-Why:  
As far as I recall this is by design.  A dig in the mail-archives 
will probably show the discussion, I seem to recall some traditionalist 
opposition (probably fielded by Garrett) against the change but the 
consensus nontheless being that in FreeBSD at least IP numbers 
are #.#.#.# all the time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23327 
>Unformatted:
