Fix case-sensitive zone handling in the transfer plugin for AXFR/IXFR. (#7899)

This PR fixes Fix case-sensitive zone handling in the transfer plugin for AXFR/IXFR, raised in 7898

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2026-03-15 14:27:03 -07:00
committed by GitHub
parent 6819d2ca6c
commit c0d676e026
2 changed files with 32 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ func (t *Transfer) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
return dns.RcodeRefused, nil
}
x := longestMatch(t.xfrs, state.QName())
x := longestMatch(t.xfrs, state.Name())
if x == nil {
return plugin.NextOrFailure(t.Name(), t.Next, ctx, w, r)
}
@@ -93,7 +93,7 @@ func (t *Transfer) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
var pchan <-chan []dns.RR
var err error
for _, p := range t.Transferers {
pchan, err = p.Transfer(state.QName(), serial)
pchan, err = p.Transfer(state.Name(), serial)
if err == ErrNotAuthoritative {
// plugin was not authoritative for the zone, try next plugin
continue