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 := new(dns.Msg)
|
||||||
m.SetReply(r)
|
m.SetReply(r)
|
||||||
m.Compress = false
|
m.Compress = false
|
||||||
|
m.Authoritative = true
|
||||||
switch r.Opcode {
|
switch r.Opcode {
|
||||||
case dns.OpcodeQuery:
|
case dns.OpcodeQuery:
|
||||||
for _, q := range m.Question {
|
for _, q := range m.Question {
|
||||||
|
Reference in New Issue
Block a user