Skip to content

Commit 7031161

Browse files
committed
Improve error message on DNSSEC failure
1 parent 0f78684 commit 7031161

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dnscrypt-proxy/proxy.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,12 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str
569569
}
570570
}
571571
if rcode := Rcode(response); rcode == dns.RcodeServerFailure { // SERVFAIL
572-
dlog.Infof("Server [%v] returned temporary error code [%v] -- Upstream server may be experiencing connectivity issues", serverInfo.Name, rcode)
573-
serverInfo.noticeFailure(proxy)
572+
if pluginsState.dnssec {
573+
dlog.Debug("A response had an invalid DNSSEC signature")
574+
} else {
575+
dlog.Infof("Server [%v] returned temporary error code SERVFAIL -- Invalid DNSSEC signature received or server may be experiencing connectivity issues", serverInfo.Name)
576+
serverInfo.noticeFailure(proxy)
577+
}
574578
} else {
575579
serverInfo.noticeSuccess(proxy)
576580
}

0 commit comments

Comments
 (0)