Bug 23327

Summary: address like 10.51 (meaning 10.0.0.51) does not work in hosts file
Product: Base System Reporter: kewarken <kewarken>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description kewarken 2000-12-06 14:50:01 UTC
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$
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 2000-12-18 21:10:45 UTC
State Changed
From-To: open->closed

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.