Use NXDOMAIN rather than FORMERR for QTYPE != TXT.

This commit is contained in:
David Fifield
2020-04-19 01:13:35 -06:00
parent 59f03791df
commit 98bf401738
+1 -1
View File
@@ -297,7 +297,7 @@ func responseFor(query *dns.Message, domain dns.Name) (*dns.Message, turbotunnel
if question.Type != dns.RRTypeTXT {
// We only support QTYPE == TXT.
resp.Flags |= dns.RcodeNotImplemented
resp.Flags |= dns.RcodeNameError
return resp, clientID, nil
}