1
0
mirror of https://github.com/mje-nz/zerotier-dns.git synced 2024-05-11 05:55:15 +00:00

set AA bit in answers

otherwise it does not work with some DNS forwarders like PowerDNS recursor
This commit is contained in:
Art Win
2020-07-25 18:50:27 +03:00
committed by GitHub
parent e7a95441bb
commit b59fd26f67

View File

@ -99,6 +99,7 @@ func handleDNSRequest(w dns.ResponseWriter, r *dns.Msg) {
m := new(dns.Msg)
m.SetReply(r)
m.Compress = false
m.Authoritative = true
switch r.Opcode {
case dns.OpcodeQuery: