mirror of
https://github.com/coredns/coredns.git
synced 2026-08-27 15:17:06 -04:00
plugin/etcd: allow disabling legacy apex fallback (#8468)
Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// ServeDNS implements the plugin.Handler interface.
|
||||
func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
opt := plugin.Options{}
|
||||
opt := plugin.Options{NoApexFallback: e.NoApexFallback}
|
||||
state := request.Request{W: w, Req: r}
|
||||
|
||||
zone := plugin.Zones(e.Zones).Matches(state.Name())
|
||||
|
||||
Reference in New Issue
Block a user