plugin/etcd: allow disabling legacy apex fallback (#8468)

Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
houyuwushang
2026-08-24 08:56:12 +08:00
committed by GitHub
parent 3b9f85bb71
commit b8720090b5
9 changed files with 128 additions and 7 deletions

View File

@@ -524,7 +524,7 @@ func checkForApex(ctx context.Context, b ServiceBackend, zone string, state requ
services, err := b.Services(ctx, state, false, opt)
state.Req.Question[0].Name = old
if err == nil || !b.IsNameError(err) {
if err == nil || !b.IsNameError(err) || opt.NoApexFallback {
return services, err
}