Query Internet-class DNS mail records
Debian Trixie package bundle / packages (push) Successful in 21m56s

This commit is contained in:
Mario Fetka
2026-07-24 14:26:35 +02:00
parent 3592a5a47a
commit b602315ed9
+4 -1
View File
@@ -389,7 +389,10 @@ _XplDns_Query(const char *domain, XplDns_RecordType type)
result->dnssec_authenticated = 0;
// FIXME: is this re-entrant _everywhere_ ?
answer_len = res_query(domain, ns_c_any, type, answer_buffer, 4096);
/* DNS mail records are Internet-class data. ns_c_any is class 255,
* not an instruction to accept any result, and authoritative servers
* are not required to answer MX/A/TXT questions sent with that class. */
answer_len = res_query(domain, ns_c_in, type, answer_buffer, 4096);
if (answer_len < 0) {
// didn't get a sensible answer