Return authoritative answer
This commit is contained in:
parent
e548227398
commit
d7ea119adf
1
main.go
1
main.go
@ -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 {
|
||||
|
Reference in New Issue
Block a user