mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
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:
@@ -422,7 +422,7 @@ func SOA(b ServiceBackend, zone string, state request.Request, opt Options) ([]d
|
||||
func BackendError(b ServiceBackend, zone string, rcode int, state request.Request, err error, opt Options) (int, error) {
|
||||
m := new(dns.Msg)
|
||||
m.SetRcode(state.Req, rcode)
|
||||
m.Authoritative, m.RecursionAvailable = true, true
|
||||
m.Authoritative = true
|
||||
m.Ns, _ = SOA(b, zone, state, opt)
|
||||
|
||||
state.W.WriteMsg(m)
|
||||
|
||||
Reference in New Issue
Block a user