From 048987fca5b31f5e55c38ecdc26a115c4e6e4774 Mon Sep 17 00:00:00 2001 From: Erfan Besharat Date: Wed, 24 Jul 2019 22:09:07 +0430 Subject: [PATCH] plugin/file: Add SOA serial to axfr log (#3042) --- plugin/file/xfr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/file/xfr.go b/plugin/file/xfr.go index 08f71030a..b2dbd1458 100644 --- a/plugin/file/xfr.go +++ b/plugin/file/xfr.go @@ -42,7 +42,7 @@ func (x Xfr) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (in j, l := 0, 0 records = append(records, records[0]) // add closing SOA to the end - log.Infof("Outgoing transfer of %d records of zone %s to %s started", len(records), x.origin, state.IP()) + log.Infof("Outgoing transfer of %d records of zone %s to %s started with %d SOA serial", len(records), x.origin, state.IP(), x.SOASerialIfDefined()) for i, r := range records { l += dns.Len(r) if l > transferLength {