Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support additional records section in response #45

Open
alessionossa opened this issue Aug 20, 2024 · 0 comments
Open

Support additional records section in response #45

alessionossa opened this issue Aug 20, 2024 · 0 comments

Comments

@alessionossa
Copy link

The records in the additional records section of DNS response are disregarded.

The specifications of this sections are in https://www.ietf.org/rfc/rfc1035.txt.

Regarding c-ares, the current version is 1.19.1. In version 1.21.0, however, the logic that parse DNS responses has been been rewritten, introducing support for the additional records section. Specifically, to support this, the following has been suggested:

ares_dns_parse() will parse all records, and additional section records can be retrieved with ares_dns_record_rr_get(..., ARES_SECTION_ADDITIONAL, ...)

https://c-ares.org/docs/ares_dns_parse.html
https://c-ares.org/docs/ares_dns_rr.html

Hint: use ares_send_dnsrec(), ares_query_dnsrec(), or ares_search_dnsrec() to retrieve the already-parsed dns record pointer in the c-ares callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant