From owner-freebsd-questions Wed Apr 10 14:30:11 2002 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 91F2E37B419 for ; Wed, 10 Apr 2002 14:30:05 -0700 (PDT) Received: from hades.hell.gr (patr530-a028.otenet.gr [212.205.215.28]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g3ALU2wA016048; Thu, 11 Apr 2002 00:30:03 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g3ALTtA7003747; Thu, 11 Apr 2002 00:30:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g3AKm4qB001697; Wed, 10 Apr 2002 23:48:04 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 10 Apr 2002 23:48:04 +0300 From: Giorgos Keramidas To: Tim McCullagh Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Maybe OT Finding the web address associated with some spam Message-ID: <20020410204804.GF334@hades.hell.gr> References: <01d401c1e02e$c7c86100$6500a8c0@halenet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01d401c1e02e$c7c86100$6500a8c0@halenet.com.au> User-Agent: Mutt/1.3.28i 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 2002-04-10 11:26, Tim McCullagh wrote: > Hi > > I was wondering if anyone can shed any light on how I can find out > what the actual address to trace to is for the following web address > > http://7814731399/webcam_access/index.html This one doesn't resolve at all. It's larger than 2^32 (4294967296) and can't represent a 32-bit Internet address. Oh wait! It can, but after it's stripped of those extra bits. $ python Python 2.2 (#1, Mar 21 2002, 03:21:57) [GCC 2.95.3 20010315 (release)] on freebsd5 Type "help", "copyright", "credits" or "license" for more information. >>> 7814731399 & (2**32-1) 3519764103L >>> And now, I can use ping(1) to find out the Internet address that matches 3519764103: $ ping -n -c1 3519764103 PING 3519764103 (209.203.86.135): 56 data bytes ... All this works because Internet addresses are represented as 32-bit integers. Any number from [0 .. (2**32-1)] can be used as an Internet address (well, practically not *any* number, but you get the idea). Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message