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

Allow customizing the static hosts configuration #1705

Merged
merged 3 commits into from
May 8, 2022

Conversation

fantix
Copy link
Contributor

@fantix fantix commented May 1, 2022

This allows custom runtimes to provide the hosts configuration in their
own way, like using io_uring instead of the std::fs::File::open() to
read the system hosts file.

Also publicized the resolver::system_conf::unix::parse_resolv_conf function for the same reason.

fantix added 2 commits May 1, 2022 16:08
This allows custom runtimes to provide the hosts configuration in their
own way, like using io_uring instead of the std::fs::File::open() to
read the system hosts file.
This allows different runtimes bring their own resolv.conf data in ways
like io_uring instead of using the std::fs::File::open().
Copy link
Member

@bluejekyll bluejekyll left a comment

Choose a reason for hiding this comment

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

A couple of minor things. Overall this looks good. Thanks for putting up the PR.

crates/resolver/src/hosts.rs Outdated Show resolved Hide resolved
crates/resolver/src/hosts.rs Outdated Show resolved Hide resolved
crates/resolver/src/hosts.rs Outdated Show resolved Hide resolved
Also fixed a redundant closure and a Rustfmt issue.
Copy link
Member

@bluejekyll bluejekyll left a comment

Choose a reason for hiding this comment

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

Looks good. Sorry for the delay.

@bluejekyll bluejekyll merged commit fab0b6a into hickory-dns:main May 8, 2022
@fantix fantix deleted the custom-hosts branch May 8, 2022 23:59
@fantix
Copy link
Contributor Author

fantix commented May 9, 2022

Totally understandable, thanks a lot for merging! It’s pretty exciting to see trust-dns working under io_uring through Cython in my toy project for asyncio, it’s only possible because you did a great job with trust-dns!

@bluejekyll
Copy link
Member

I've had a lot of help from people like you. Thank you!

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.

None yet

2 participants