Return NOTIMP for some unimplemented query types, NXDOMAIN otherwise

This commit is contained in:
Alvaro Saurin committed 2015-05-05 21:31:11 +02:00
1 parent 56038674b1
commit ba98135e03
5 files changed
+18 -11

No files matched your search

-8
View File
@@ -74,14 +74,6 @@ func makeDNSFailResponse(r *dns.Msg) *dns.Msg {
return m
}
func makeDNSNotImplResponse(r *dns.Msg) *dns.Msg {
m := new(dns.Msg)
m.SetReply(r)
m.RecursionAvailable = true
m.Rcode = dns.RcodeNotImplemented
return m
}
// get the maximum UDP-reply length
func getMaxReplyLen(r *dns.Msg, proto dnsProtocol) int {
maxLen := minUDPSize