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

Add a copy mode to dns.message.make_response(). #1131

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Conversation

rthalley
Copy link
Owner

If the mode is dns.message.CopyMode.QUESTION, the default, then only the question section is copied.

If the mode is dns.message.CopyMode.EVERYTHING, then all sections are copied other than OPT or TSIG records which are created appropriately if needed instead of being copied.

If the mode is dns.message.CopyMode.NOTHING then no sections are copied.

If the mode is dns.message.CopyMode.QUESTION, the default, then
only the question section is copied.

If the mode is dns.message.CopyMode.EVERYTHING, then all sections are
copied other than OPT or TSIG records which are created appropriately
if needed instead of being copied.

If the mode is dns.message.CopyMode.NOTHING then no sections are
copied.
@rthalley rthalley merged commit aad6d81 into main Sep 17, 2024
9 checks passed
@rthalley rthalley deleted the make-response-copy-mode branch September 17, 2024 12:56
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