Return authoritative answer

This commit is contained in:
Lauri Võsandi 2021-06-02 21:16:06 +03:00
parent e548227398
commit d7ea119adf
1 changed files with 1 additions and 0 deletions

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 {