You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we support ANY queries (#13137), I think the foundation is laid to support zone transfers and we can likely share most of the code that is used to parse the ANY response and parse the AXFR response with it.
The main difference between "normal" queries and AXFR queries is that AXFR queries can have their answers spread across any number of messages. @XadillaX might be correct, I am not sure whether c-ares supports this 😕
Yeah, looks like c-ares can indeed not parse a AXFR response. Using the adig utility that comes with it, I only see the initial SOA response being parsed, but not the AXFR content:
$ ./adig -t axfr -s 127.0.0.1 domain.com
DNS server returned answer with no data
id: 18388
flags: qr aa rd
opcode: QUERY
rcode: NOERROR
Questions:
domain.com. AXFR
Answers:
NS records:
domain.com. 3600 SOA ...
Activity
XadillaX commentedon Aug 6, 2017
The principle of
ANYqueries is to parse the packet time by time by callingares_parse_a_reply,ares_parse_aaaa_reply, etc.But it seems C-ARES does not support to parse
AXFRquery.tniessen commentedon Aug 6, 2017
The main difference between "normal" queries and AXFR queries is that AXFR queries can have their answers spread across any number of messages. @XadillaX might be correct, I am not sure whether c-ares supports this 😕
silverwind commentedon Aug 6, 2017
Yeah, looks like c-ares can indeed not parse a
AXFRresponse. Using theadigutility that comes with it, I only see the initial SOA response being parsed, but not the AXFR content:bnoordhuis commentedon Aug 9, 2017
@silverwind Is the conclusion that this isn't possible? If yes, can you close it out?
(Aside: adig -- like c-ares -- indeed doesn't support AXFR, it only recognizes the tag.)
silverwind commentedon Aug 9, 2017
Yes, we can close it, I just don't want it to be forgotten. Let's see what comes out of #14713, otherwise I'll open an issue on the c-ares tracker.
Trott commentedon Aug 11, 2019
@silverwind Did you ever open that issue on the c-ares tracker?
silverwind commentedon Aug 11, 2019
No, I don't think so. Nowadays, I just use https://github.com/mafintosh/dns-packet/ for advanced DNS use cases.