If the debug level is > 1, SPF_dns_resolv_lookup was outputting the
other sections of the DNS response. While this information may be
useful, the number of records returned was influenced by whatever
the last section was.
For if the last section (e.g. ADDITIONAL) had no records then a
NO_DATA response is returned.
There's a lot of additional parsing and error handling that may
occur when processing other sections of the response, so just skip
the non-ANSWER sections even when debugging instead of attempting to
distinguish between real errors and errors occurring in debug output.
If the debug level is > 1, SPF_dns_resolv_lookup was outputting the other sections of the DNS response. While this information may be useful, the number of records returned was influenced by whatever the last section was.
For if the last section (e.g. ADDITIONAL) had no records then a NO_DATA response is returned.
There's a lot of additional parsing and error handling that may occur when processing other sections of the response, so just skip the non-ANSWER sections even when debugging instead of attempting to distinguish between real errors and errors occurring in debug output.