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

Servers should drop received DNS response messages. #381

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

ximon18
Copy link
Member

@ximon18 ximon18 commented Sep 4, 2024

I just noticed that the UDP and TCP server code will happily propagate any received DNS message for processing by the service stack, even if the received message has the QR header bit set to 1, i.e. it is a reply, not a query.

Middleware and customer service code shouldn't have to check every received message to make sure they are not unexpectedly replies rather than queries, so ignore them in the servers.

@ximon18 ximon18 requested a review from a team September 4, 2024 11:43
@ximon18 ximon18 merged commit 930786e into main Oct 3, 2024
26 checks passed
@ximon18 ximon18 deleted the servers-should-ignore-responses branch October 3, 2024 11:34
ximon18 added a commit that referenced this pull request Oct 3, 2024
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.

3 participants