mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
Recurse when PTR answer is empty
This commit is contained in:
parent
a6317f2fb2
commit
5647a37ffe
@ -209,6 +209,12 @@ func (d *DNSServer) handlePtr(resp dns.ResponseWriter, req *dns.Msg) {
|
||||
}
|
||||
}
|
||||
|
||||
// nothing found locally, recurse
|
||||
if len(m.Answer) == 0 {
|
||||
d.handleRecurse(resp, req)
|
||||
return
|
||||
}
|
||||
|
||||
// Write out the complete response
|
||||
if err := resp.WriteMsg(m); err != nil {
|
||||
d.logger.Printf("[WARN] dns: failed to respond: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user