LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 16 Oct 2001 10:49:32 -0400
Reply-To:     Brad.Goldman@AUTOTRADER.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Brad.Goldman@AUTOTRADER.COM
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 > 199.10.10.1 look like www.somedomain.com?

Simon,

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. *x "shellscript" *when results are in, parse the results text file that the shellscript created.

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, Brad Goldman


Back to: Top of message | Previous page | Main SAS-L page