mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
resolved: Don't retry queries that indicate net error
This probably rarely helped anyway, but it also in some cases interferes
with auxiliary dnssec queries where the authoritative nameserver does
not support EDNS0/DNSSEC.
Fixes: ac6844460c ("resolved: support RFC 8914 EDE error codes")
This commit is contained in:
committed by
Luca Boccassi
parent
281b0bfbed
commit
cd2ce31adb
@@ -1264,7 +1264,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p, bool encrypt
|
||||
}
|
||||
|
||||
/* These codes probably indicate a transient error. Let's try again. */
|
||||
if (IN_SET(t->answer_ede_rcode, DNS_EDE_RCODE_NOT_READY, DNS_EDE_RCODE_NET_ERROR)) {
|
||||
if (t->answer_ede_rcode == DNS_EDE_RCODE_NOT_READY) {
|
||||
log_debug("Server returned error: %s (%s%s%s), retrying transaction.",
|
||||
FORMAT_DNS_RCODE(DNS_PACKET_RCODE(p)),
|
||||
FORMAT_DNS_EDE_RCODE(t->answer_ede_rcode),
|
||||
|
||||
Reference in New Issue
Block a user