rndc status "soa queries in progress" counter includes also AXFR in progress
Summary
rndc status "soa queries in progress" counter includes also AXFRs in progress, even transfers which made SOA query and received a valid answer with SOA before initiating transfer itself.
BIND version used
- Affects v9.19: 8272cc23
- Affects v9.18: v9_18_9
- Affects v9.16: v9_16_35
- Affects v9.11 (EoL): v9_11_37
Steps to reproduce
- Use following config to transfer (public) se. zone:
zone se {
type secondary;
primaries { 45.155.96.61; };
notify no;
};
- Run
tcpdump
and watch SOA queries go by:
sudo tcpdump -i any 'udp and host 45.155.96.61'
- Run BIND:
named -g -c secondary.conf
- Observe output from
rndc status
before the transfer finishes.
What is the current bug behavior?
tcpdump shows:
18:43:53.463606 enp0s13f0u1u2u3 Out IP p.50306 > zonedata.iis.se.domain: 21273 [1au] SOA? se. (35)
18:43:53.512928 enp0s13f0u1u2u3 In IP zonedata.iis.se.domain > p.50306: 21273*- 1/0/1 SOA (107)
rndc status
at the same time shows:
xfers running: 1
xfers deferred: 0
soa queries in progress: 1
named
log at the time:
21-Nov-2022 18:43:53.509 zone se/IN: Transfer started.
21-Nov-2022 18:43:53.556 transfer of 'se/IN' from 45.155.96.61#53: connected using 45.155.96.61#53
What is the expected correct behavior?
I would expect "soa queries in progress" counter so be 0 at this point in time.