in reply to Net::Nslookup help needed

#!/usr/bin/perl use strict; use warnings; use Net::Nslookup; my $name = Net::Nslookup->nslookup; $name = nslookup( domain => 'yahoo.com' ); print "name=$name\n";
Updated: added "name=$name\n"

Replies are listed 'Best First'.
Re^2: Net::Nslookup help needed
by gw1500se (Beadle) on Aug 27, 2008 at 23:45 UTC
    Thanks for the reply. That doesn't seem to help. The only difference is that I get this additional line from the debug:

    Performing 'A' lookup on `net::nslookup' at ...

    I don't know what the additional line is supposed to do but it appears that it is running nslookup using itself as the domain name.