From owner-freebsd-stable@FreeBSD.ORG Thu Oct 27 13:41:20 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EBC916A41F for ; Thu, 27 Oct 2005 13:41:20 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id E55C043D45 for ; Thu, 27 Oct 2005 13:41:19 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.54) id 1EV80H-0007I8-9R; Thu, 27 Oct 2005 14:41:15 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.50) id 1EV80B-0002UJ-6e; Thu, 27 Oct 2005 14:41:07 +0100 Date: Thu, 27 Oct 2005 14:41:07 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: "Paul T. Root" In-Reply-To: <4360CC05.2070907@iaces.com> Message-ID: References: <200510262307.j9QN7G7V014335@drugs.dv.isc.org> <4360C6A7.2080502@iaces.com> <4360CC05.2070907@iaces.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -1.4 X-Spam-Level: - Cc: Greg Black , Mark Andrews , freebsd-stable@freebsd.org Subject: Re: Resolver doesn't like 1.2.3.04 in /etc/hosts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 13:41:20 -0000 On Thu, 27 Oct 2005, Paul T. Root wrote: > Jan Grant wrote: > > > > On Thu, 27 Oct 2005, Paul T. Root wrote: > > > > > > > man inet_addr > > > > > > and you'll find: > > > > > > All numbers supplied as ``parts'' in a `.' notation may be decimal, > > > octal, or hexadecimal, as specified in the C language (i.e., a leading > > > 0x or 0X implies hexadecimal; otherwise, a leading 0 implies octal; > > > otherwise, the number is interpreted as decimal). > > > > > > > > > So a leading zero means hex. Stop trying to make it look pretty. > > > > > > Standards are a good thing and need to be followed. [ "STANDARDS" section from the man page snipped ] > Sure but the hosts(5) man page says that it follows inet_addr(3) spec. > Sorry, I neglected to put that little leap in. You're right. So, we appear to agree that either the man page for hosts(5) is in need of an update, or the resolver is currently not conforming to the described behaviour? Since 1.2.3.04 foo is currently an illegal /etc/hosts entry. Cheers, -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ They modified their trousers secretly.