_wait_for_rcode adds extraneous query
The file name is also queried for
% more catz/dig.out.test20
; <<>> DiG 9.15.6 <<>> -p 6200 @10.53.0.1 SOA dom3.example. dig.out.test20
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49825
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 552f143ecf928ed7010000005df01a16958efc13984e1f65 (good)
;; QUESTION SECTION:
;dom3.example. IN SOA
;; ANSWER SECTION:
dom3.example. 3600 IN SOA . . 1 3600 3600 3600 3600
;; Query time: 12 msec
;; SERVER: 10.53.0.1#6200(10.53.0.1)
;; WHEN: Tue Dec 10 22:20:06 UTC 2019
;; MSG SIZE rcvd: 103
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 38697
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 552f143ecf928ed7010000005df01a16958efc13984e1f65 (good)
;; QUESTION SECTION:
;dig.out.test20. IN SOA
;; Query time: 8 msec
;; SERVER: 10.53.0.1#6200(10.53.0.1)
;; WHEN: Tue Dec 10 22:20:06 UTC 2019
;; MSG SIZE rcvd: 71
%