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

Adding smoltcp-based DNS support #46

Merged
merged 8 commits into from
Aug 22, 2023
Merged

Adding smoltcp-based DNS support #46

merged 8 commits into from
Aug 22, 2023

Conversation

ryan-summers
Copy link
Member

@ryan-summers ryan-summers commented Aug 22, 2023

This PR adds trait implementations for the embedded-nal Dns trait to allow libraries to resolve DNS queries at run time.

Current restrictions:

  • Only 2 inflight queries allowed
  • Each DNS query can only be up to 255 characters long

These limitations could go away if smoltcp was able to provide us info about in-flight queries, but I believe it does not cache them.

Copy link
Member

@jordens jordens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks neat!

src/lib.rs Outdated Show resolved Hide resolved
@ryan-summers ryan-summers merged commit 8ba6776 into main Aug 22, 2023
6 checks passed
@ryan-summers ryan-summers deleted the feature/dns-support branch August 22, 2023 15:09
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.

2 participants