Date: Tue, 16 Oct 2001 10:49:32 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Resolving an IP-address
Content-Type: text/plain; charset="iso-8859-1"
> Date: Tue, 16 Oct 2001 09:21:59 GMT
> From: Simon <simpabimpa@HOTMAIL.COM>
> Subject: Resolving an IP-address
> Does anyone know how I can resolve an IP-address from SAS?
> That is, make
> 18.104.22.168 look like www.somedomain.com?
There is no easy way. I've been working on and off for months on a project
to do just this. And I know of at least two other lurkers who want to steal
-- I mean, get inspired by! -- my code if I ever finish.
Here is the basic algorithm.
*get a dataset of the tcpips to lookup
*Loop through this dataset, dymanically build a shell script (I'm in unix)
that has a bunch of whois commands.
*when results are in, parse the results text file that the shellscript
If you are using whois, as we are, the parsing is awful -- whoever set up
their outputting program should be summarily executed. nslookup, which
looks closer to what you want, is easier to read, but has it's own problems.
There are more complications, you can discover those as you go.
Hope this helps,