transfer: reply with refused (#4510)
* transfer: reply with refused When the *transfer* plugin is not loaded and of the handlers will still see the AXFR/IXFR request because it is not intercepted. They need to reply with REFUSED in that case. Update file, auto and k8s to do this. Add testcase in the file plugin. Ideally *erratic* should be moved over as well, but maybe that's *erratic* This is a bug fix. Signed-off-by: Miek Gieben <miek@miek.nl> * import path Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
c27605797b
commit
74ef6e00f1
4 changed files with 41 additions and 0 deletions
|
@ -44,6 +44,8 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M
|
|||
records, extra, err = plugin.SRV(ctx, &k, zone, state, plugin.Options{})
|
||||
case dns.TypeSOA:
|
||||
records, err = plugin.SOA(ctx, &k, zone, state, plugin.Options{})
|
||||
case dns.TypeAXFR, dns.TypeIXFR:
|
||||
return dns.RcodeRefused, nil
|
||||
case dns.TypeNS:
|
||||
if state.Name() == zone {
|
||||
records, extra, err = plugin.NS(ctx, &k, zone, state, plugin.Options{})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue