mirror of https://github.com/slackhq/nebula.git
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…
Reference in New Issue