From b44fb3d7bd306d0e87180b4272663935523c48ff Mon Sep 17 00:00:00 2001 From: "Jonathan Leibiusky @xetorthio" Date: Fri, 24 Feb 2017 09:55:08 -0300 Subject: [PATCH] Instead of returning a nice error, just close the connection as it seems libnetwork doesn't handle RcodeServerFailure, and when receiving it it won't try the next configured DNSs --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index 5aacba8..1c538d6 100644 --- a/api.go +++ b/api.go @@ -159,7 +159,8 @@ func handleDnsRequest(w dns.ResponseWriter, r *dns.Msg) { return } else { // we have no information about this and we are not a recursive dns server, so we just fail so the client can fallback to the next dns server it has configured - dns.HandleFailed(w, r) + w.Close() + // dns.HandleFailed(w, r) return } }