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

Support truncation #8

Open
Bouke opened this issue Oct 7, 2017 · 0 comments
Open

Support truncation #8

Bouke opened this issue Oct 7, 2017 · 0 comments

Comments

@Bouke
Copy link
Owner

Bouke commented Oct 7, 2017

UDP DNS messages are limited to 512 bytes. If messages are over 512 bytes, the message is cut-off at 512 bytes and the truncation bit is set. Currently the bit is parsed, but the message isn't handled differently, resulting in a parsing failure. The correct way here would be parsing only a partial message without throwing.

The other way around should also be supported, cutting off messages when truncation is supported.

Also, I need to read up on the spec to see how truncation actually works.

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

No branches or pull requests

1 participant