So I got the code to work by doing the following:
Is there a better way to do this with the code originally posted?
my $query = $resolver->query($target_ip, 'PTR'); my @answer = $query->answer; print "Total # of Hostnames found: ", scalar(@answer), "\n";
In reply to Re^2: Net::DNS answer count
by g_speran
in thread Net::DNS answer count
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |