DIAGNOSTIC: log every ServeDNS call (will revert)
This commit is contained in:
parent
0f28127284
commit
19e93e39e1
@ -75,6 +75,7 @@ func (p *RFC2136) Name() string { return "rfc2136" }
|
|||||||
// Anything else → pass through to Next (the auto plugin handles
|
// Anything else → pass through to Next (the auto plugin handles
|
||||||
// queries against the zone files we maintain).
|
// queries against the zone files we maintain).
|
||||||
func (p *RFC2136) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
func (p *RFC2136) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||||
|
log.Infof("ServeDNS: opcode=%d (UPDATE=5) qcount=%d", r.Opcode, len(r.Question))
|
||||||
if r.Opcode == dns.OpcodeUpdate {
|
if r.Opcode == dns.OpcodeUpdate {
|
||||||
if err := p.checkTSIG(w, r); err != nil {
|
if err := p.checkTSIG(w, r); err != nil {
|
||||||
log.Warningf("UPDATE rejected: %v", err)
|
log.Warningf("UPDATE rejected: %v", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user