From:
|
if dns.rcode == dnsRcodeNameError && dns.recursion_available { |
it looks like any NXDOMAIN reply where the server doesn't allow recursive queries is treated as "server misbehaving". I would expect this to be treated like any other case where the name doesn't exist and get a "no such host" error instead.
Any reason why we have the "&& dns.recursion_available" part of the condition?