mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-12 11:33:57 +01:00
dns_server.go: parseQuery: set NXDOMAIN if there's no Answer to return (#845)
This commit is contained in:
parent
df78158cfa
commit
e54f9dd206
@ -96,6 +96,10 @@ func parseQuery(l *logrus.Logger, m *dns.Msg, w dns.ResponseWriter) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(m.Answer) == 0 {
|
||||
m.Rcode = dns.RcodeNameError
|
||||
}
|
||||
}
|
||||
|
||||
func handleDnsRequest(l *logrus.Logger, w dns.ResponseWriter, r *dns.Msg) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user