From owner-freebsd-questions Sat Jun 23 21:20:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 3D3C937B405 for ; Sat, 23 Jun 2001 21:20:44 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-b083.otenet.gr [195.167.121.211]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f5O4Kbx17347; Sun, 24 Jun 2001 07:20:38 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.4/8.11.3) id f5O4KaQ44313; Sun, 24 Jun 2001 07:20:36 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 24 Jun 2001 07:20:31 +0300 From: Giorgos Keramidas To: cjclark@alum.mit.edu Cc: Odhiambo Washington , freebsd-questions@FreeBSD.ORG Subject: Re: [OT] Domain names that are just numbers -- what's this?? Message-ID: <20010624072031.A43354@hades.hell.gr> References: <3B31292E.8EC9C976@iowna.com> <20010620184659.M91984@happy.cow.org> <3B312E9C.23E1178D@iowna.com> <20010621090240.H25711@everest.wananchi.com> <20010624054246.B8150@hades.hell.gr> <20010623201951.C30874@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010623201951.C30874@blossom.cjclark.org>; from cristjc@earthlink.net on Sat, Jun 23, 2001 at 08:19:51PM -0700 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 23, 2001 at 08:19:51PM -0700, Crist J. Clark wrote: > Resolving a decimal number as an IP address works fine for me on > -STABLE, > > % ping 2130706433 Ahem. This works correctly for me too. charon@hades:~% ping 2130706433 PING 2130706433 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.271 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.284 ms ^C --- 2130706433 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.271/0.277/0.284/0.007 ms It might be that our gethostbyname2() performs more strict checks on the input values. I'll check it out when I manage to get some sleep. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message