disable ra flag for several plugins (#2408)

* disable ra flag for several plugins

* removed unnecessary assignment

* removed more unnecessary assignments
This commit is contained in:
Isolus
2018-12-30 17:05:08 +01:00
committed by Miek Gieben
parent 38790c7222
commit 7642995558
11 changed files with 11 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ func (f File) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
if z.isNotify(state) {
m := new(dns.Msg)
m.SetReply(r)
m.Authoritative, m.RecursionAvailable = true, true
m.Authoritative = true
w.WriteMsg(m)
log.Infof("Notify from %s for %s: checking transfer", state.IP(), zone)
@@ -83,7 +83,7 @@ func (f File) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
m := new(dns.Msg)
m.SetReply(r)
m.Authoritative, m.RecursionAvailable = true, true
m.Authoritative = true
m.Answer, m.Ns, m.Extra = answer, ns, extra
switch result {