Skip to content

DNS Record Write #598

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

Merged
merged 28 commits into from
Nov 7, 2023
Merged

DNS Record Write #598

merged 28 commits into from
Nov 7, 2023

Conversation

bradh352
Copy link
Member

@bradh352 bradh352 commented Nov 7, 2023

The ares_dns_record_t data structure created in the prior release is capable of holding a complete parsed DNS message and also provides all helpers in order to fill in the data structure. This PR adds write capabilities for this data structure to form a complete message and supports features such as DNS name compression as defined in RFC1035. Though this message writing capability goes further than c-ares internally needs, external users may find it useful ... and we may find it useful for test validation as well.

This also replaces the existing message writing code in ares_create_query(), as well rewriting the request message without EDNS in ares_process.c's process_answer().

Fix By: Brad House (@bradh352)

@bradh352 bradh352 merged commit 784ee5a into c-ares:main Nov 7, 2023
@bradh352 bradh352 deleted the dns_record_write branch November 8, 2023 13:12
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

Successfully merging this pull request may close these issues.

1 participant