nxdomain if no rr found
This commit is contained in:
parent
6d49db2b6b
commit
c7bac27a53
@ -360,6 +360,10 @@ func handleRequest(w dns.ResponseWriter, r *dns.Msg, zone zoneView) {
|
||||
}
|
||||
}
|
||||
|
||||
if len(m.Answer) == 0 {
|
||||
m.SetRcode(m, dns.RcodeNameError)
|
||||
}
|
||||
|
||||
w.WriteMsg(m)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user