Running Net::DNS ver 8.68
This example fails with "no nameserver" when I run this.
(replaced example.com with a valid domain for our network)
resolve.conf has nameserver localhost
Dig and host both return valid results
use Net::DNS;
my $res = Net::DNS::Resolver->new;
my $query = $res->query("example.com", "SOA");
if ($query) {
($query->answer)[0]->print;
} else {
print "query failed: ", $res->errorstring, "\n";
}