aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erfan Besharat <erbesharat@gmail.com> 2019-07-24 22:09:07 +0430
committerGravatar Miek Gieben <miek@miek.nl> 2019-07-24 17:39:07 +0000
commit048987fca5b31f5e55c38ecdc26a115c4e6e4774 (patch)
tree56ecb50ef3116c74a13020fd84f353df76ce741f
parenteba020e6a1176c0d8fed639e936ddc2774f295dd (diff)
downloadcoredns-048987fca5b31f5e55c38ecdc26a115c4e6e4774.tar.gz
coredns-048987fca5b31f5e55c38ecdc26a115c4e6e4774.tar.zst
coredns-048987fca5b31f5e55c38ecdc26a115c4e6e4774.zip
plugin/file: Add SOA serial to axfr log (#3042)
-rw-r--r--plugin/file/xfr.go2
1 files changed, 1 insertions, 1 deletions
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 {