nxdomain if no rr found

This commit is contained in:
Niklas 2021-01-06 23:06:47 +01:00
parent 6d49db2b6b
commit c7bac27a53

View File

@ -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)
}