Return authoritative answer

This commit is contained in:
Lauri Võsandi 2021-06-02 21:16:06 +03:00
parent e548227398
commit d7ea119adf

View File

@ -74,6 +74,7 @@ func wrapper(coll *mongo.Collection) func(dns.ResponseWriter, *dns.Msg) {
m := new(dns.Msg)
m.SetReply(r)
m.Compress = false
m.Authoritative = true
switch r.Opcode {
case dns.OpcodeQuery:
for _, q := range m.Question {