1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-14 01:57:32 +08:00

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
This commit is contained in:
Jonathan Leibiusky @xetorthio 2017-02-24 09:55:08 -03:00
parent 41ded27ef3
commit b44fb3d7bd

3
api.go
View File

@ -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
}
}