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:
parent
41ded27ef3
commit
b44fb3d7bd
3
api.go
3
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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user