plugin/file: Add SOA serial to axfr log (#3042)

This commit is contained in:
Erfan Besharat 2019-07-24 22:09:07 +04:30 committed by Miek Gieben
parent eba020e6a1
commit 048987fca5

View file

@ -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 {