I do not remember from the original post. Were we doing this in ip-up. If so the ip numbers are already available as environment variables. Then all you need is nslookup. That is the way I do it.
[EMAIL PROTECTED] (Brad) writes: > > On Sat, 25 Sep 1999, Tim Thomson wrote: > > > On Wed, 22 Sep 1999, Steve Lamb wrote: > > > > > while(<>){ > > > if ($_ =~ /inet addr:(\n+)\.(\n+)\.(\n+)\.(\n+)/){ > > > $ipaddr = "$1.$2.$3.$4"; > > > } > > > $return = `nslookup $1.$2.$3.$4`; > > > print($return); > > > } > > > > Thanks for all replies. It was actually cut I was thinking of initially. > > I couldn't get this one to go, nothing was going into $1,$2, or $ipaddr. > > Simple typo. Use \d (digit) instead of \n (linebreak). > -- *********************** Running Debian Linux *********************** * For God so loved the world that He gave his only begotten Son, * * that whoever believes in Him should not perish... John 3:16 * * W. Paul Mills * Topeka, Kansas, U.S.A. * * EMAIL= [EMAIL PROTECTED] * WWW= http://Mills-USA.com/ * * Bill, I was there several years ago, why would I want to go back? * ************* pgp public key on keyservers everywhere? *************/ --