bugfixes #1

Merged
niklas merged 5 commits from develop into master 2021-03-21 13:25:41 +00:00
Showing only changes of commit ebce605863 - Show all commits

View File

@ -121,7 +121,15 @@ func handleRequest(w dns.ResponseWriter, r *dns.Msg, zone zoneView) {
} }
if len(m.Answer) == 0 { if len(m.Answer) == 0 {
m.SetRcode(m, dns.RcodeNameError) var soa dns.RR
for _, v := range zone.rr[dns.TypeSOA] {
if len(v) == 1 {
soa = v[0]
}
}
if soa != nil {
m.Extra = append(m.Extra, soa)
}
} }
w.WriteMsg(m) w.WriteMsg(m)