North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: interger to I P address

  • From: Peter Dambier
  • Date: Wed Aug 27 10:19:35 2008

For the curious,

have a look at the IASON tools

http://iason.site.voila.fr/

and try

   c:~$ natnum 1089055123

   host_look("64.233.169.147","1089055123","1089055123").
   host_name("64.233.169.147","yo-in-f147.google.com").

natnum takes a hostname, an integer or an IPv4 address and
shows you the IPv4 address, the integer and the hostname.

If you do maintain your /etc/hosts it will tell you the aliases too.

Most of the stuff is unix only, but I guess you can compile
natnum even for windows.


Kind regards
Peter


Matlock, Kenneth L wrote:
> Easiest way.
>  
> Take the integer, plug it into windows 'calc'.
>  
> Go to 'View: Scientific'.
>  
> Hit 'Hex'. That will show you the hex representation of the integer. Notice that it's either 7 or 8 characters long. 
>  
> If it's 7, prepend it with a 0.
>  
> Break that into 4 groups of 2. Those are the hex values for the four dotted quads. 
>  
> Make sure 'Hex' is still selected, and put in the first 2 characters, then hit 'binary'. That's your first part of the IP. Repeat for the other 3.
>  
> For example, you have 1089055123 for an integer.
>  
> In Hex thats 40E9A993. 
>  
> 40 Hex = 64
> E9 Hex = 233
> A9 Hex = 169
> 94 Hex = 147
>  
> So your IP is 64.233.169.147
>  
> Ken
>  
> 
> ________________________________
> 
> From: Colin Alston [mailto:[email protected]]
> Sent: Wed 8/27/2008 5:21 AM
> To: kcc
> Cc: [email protected]
> Subject: Re: interger to I P address
> 
> 
> 
> kcc wrote:
>> I search google but couldn't get any solution
>>
>> Can you send me information?
> 
> Sure!
> 
> http://www.catb.org/~esr/faqs/smart-questions.html
> 
> 
> 

-- 
Peter and Karin Dambier
Cesidian Root - Radice Cesidiana
Rimbacher Strasse 16
D-69509 Moerlenbach-Bonsweiher
+49(6209)795-816 (Telekom)
+49(6252)750-308 (VoIP: sipgate.de)
mail: [email protected]
http://www.peter-dambier.de/
http://iason.site.voila.fr/
https://sourceforge.net/projects/iason/