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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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