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

Parse EDNS (and EDNS options) #48

Open
bortzmeyer opened this issue May 31, 2022 · 2 comments
Open

Parse EDNS (and EDNS options) #48

bortzmeyer opened this issue May 31, 2022 · 2 comments
Assignees

Comments

@bortzmeyer
Copy link

It would be nice to add support for parsing EDNS OPT record, and also to parse the options in it (cookie, NSID, etc). It does not seem there is support for that in the Erlang library. I added one in the Drink server (lib/drink/parsing.ex), you're welcome to reuse the code if you want.

@tungd tungd self-assigned this Jun 2, 2022
@bortzmeyer
Copy link
Author

bortzmeyer commented Aug 17, 2022

An alternative could be to use this Erlang library(untested). It parses some EDNS options (NSID, ECS but not cookies).

@bortzmeyer
Copy link
Author

I just refactored the EDNS code in Drink, it is now in lib/drink/edns.ex and lib/drink/ednscodes.ex. Feel free to reuse it. It now handles NSID, ECS, and cookies.

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

2 participants