Improve resilience and logging in resolver and nameserver

This commit is contained in:
Daniel
2020-08-17 22:17:48 +02:00
parent 633bb34288
commit 39aa3d0879
3 changed files with 35 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ func sendResponse(w dns.ResponseWriter, query *dns.Msg, verdict network.Verdict,
reply.Extra = append(reply.Extra, rrs...)
}
if err := w.WriteMsg(reply); err != nil {
if err := writeDNSResponse(w, reply); err != nil {
log.Errorf("nameserver: failed to send response: %s", err)
}
}