From owner-freebsd-chat@FreeBSD.ORG Mon Feb 8 17:57:20 2010 Return-Path: Delivered-To: freebsd-chat@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AC29106568D for ; Mon, 8 Feb 2010 17:57:20 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id A50E48FC1F for ; Mon, 8 Feb 2010 17:57:19 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o18Hv36u051450; Mon, 8 Feb 2010 18:57:18 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o18Hv3rR051449; Mon, 8 Feb 2010 18:57:03 +0100 (CET) (envelope-from olli) Date: Mon, 8 Feb 2010 18:57:03 +0100 (CET) Message-Id: <201002081757.o18Hv3rR051449@lurza.secnetix.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG, deeptech71@gmail.com In-Reply-To: <3f2022cd1002071141i222a2f3dgb6679a382e947332@mail.gmail.com> X-Newsgroups: list.freebsd-chat User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 08 Feb 2010 18:57:18 +0100 (CET) Cc: Subject: Re: resolveip 0127.001 what the fuck? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-chat@FreeBSD.ORG, deeptech71@gmail.com List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 17:57:20 -0000 deeptech71@gmail.com wrote: > %resolveip 127 > resolveip: Unable to find hostname for '127' > %resolveip 127.0 > resolveip: Unable to find hostname for '127.0' > %resolveip 127.1 > Host name of 127.1 is localhost, localhost.my.domain > %resolveip 127.2 > resolveip: Unable to find hostname for '127.2' > %resolveip 127.0.1 > Host name of 127.0.1 is localhost, localhost.my.domain > %resolveip 127.00000.00000.001 > Host name of 127.00000.00000.001 is localhost, localhost.my.domain > > %resolveip 127.1 > Host name of 127.1 is localhost, localhost.my.domain > %resolveip 0127.1 > Host name of 0127.1 is host1-0-dynamic.0-87-r.retail.telecomitalia.it > %resolveip 0127.2 > Host name of 0127.2 is host2-0-dynamic.0-87-r.retail.telecomitalia.it > %resolveip 0127.0.0.1 > Host name of 0127.0.0.1 is host1-0-dynamic.0-87-r.retail.telecomitalia.it > %resolveip 0127.0 > resolveip: Unable to find hostname for '0127.0' > > %resolveip 000000127.0.000000000000000000023.000000000024 > Host name of 000000127.0.000000000000000000023.000000000024 is > host20-19-dynamic.0-87-r.retail.telecomitalia.it > %resolveip 000000127.23.000000000.1 > Host name of 000000127.23.000000000.1 is > host1-0-static.23-87-b.business.telecomitalia.it > %resolveip 000000127.24.0.1 > Host name of 000000127.24.0.1 is > host1-0-static.24-87-b.business.telecomitalia.it > %resolveip 000000127.55.0.1 > Host name of 000000127.55.0.1 is 0x57370001.ge-1-1-0-1100.esnqu2.dk.ip.tdc.net > %resolveip 000000127.0000000055.0.1 > resolveip: Unable to find hostname for '000000127.0000000055.0.1' I don't know the "resolveip" tool (doesn't seem to be part of FreeBSD), but obviously it interprets numbers that begin with "0" as octal numbers, as is standard behaviour in C and some other languages. Given that, all of the above results are perfectly correct. Best regards Oliver PS: For quick conversion on the command line, I use dc(1): $ dc -e 8i127p 87 $ dc -e 8o87p 127 -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "When your hammer is C++, everything begins to look like a thumb." -- Steve Haflich, in comp.lang.c++