Subject: | NXDOMAIN is no longer reported by $r->errorstring |
Net::DNS 0.69 (and 0.70) no longer return error in errorstring()
in case the Net::DNS::Resolver::query() comes back empty-handed
(non-existent domain, packet is returned with no answer section,
header->rcode is NXDOMAIN):
$ perl -le 'use Net::DNS; $r=Net::DNS::Resolver->new;
$resp=$r->query("_adsp._domainkey.xxx.sa-test.spamassassin.org");
printf("resp=%s, errstr=/%s/\n",
defined $resp ? $resp : "UNDEF", $r->errorstring)'
0.69, 0.70 -(incorrect):
resp=UNDEF, errstr=//
0.68 - (correct):
resp=UNDEF, errstr=/NXDOMAIN/
(btw, this breaks Mail::DKIM handling of ADSP for non-existent domains)