TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:20104] A perl problem



* Apu <isla0005@tc.umn.edu> [000807 15:43]:
> Hi,
> 
> I tried to use NET::DNS but as I am just using a web hosting from a company
> I am not able to use that module (they don't have it installed).
> 
> Any other idea (using unix....)
> 

Well, you could either install the module yourself into your home dir,
or do something like:

#!/usr/bin/perl -w

$temp = `nslookup 127.0.0.1`;
$temp =~ /Name:\s*(.*)/m;
print $1, "\n";

-R

-- 
-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Ryan Hankins                SGI, Eagan, MN
651-683-5025               hankins@sgi.com
-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^