feat: add ability to configure Recursion Desired (RD) bit for DNS read queries only #552
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new configuration option:
recursive
(Boolean), which allows users to control whether theRecursion Desired (RD)
bit is set for DNS read (resolution) queries.Purpose
In our current architecture, DNS update requests are sent to an authoritative DNS server, while resolution (read) queries are sent to a recursive resolver. However, without this change, read queries are rejected by our recursive resolver because the Recursion Desired (RD) flag is set to 0 by default. Recursive resolvers expect this flag to be explicitly set to 1 in order to process and resolve the query.
By introducing the recursive configuration option, we allow users to control the RD bit for read queries only, ensuring compatibility with recursive resolvers and avoiding rejected requests.
This change increases flexibility for mixed DNS infrastructures where update and resolution paths differ.
New setting
The following configuration field has been added under the update block:
Additional Notes