[PR #1705] [MERGED] Allow customizing the static hosts configuration #2537

Closed
opened 2026-03-16 10:06:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/1705
Author: @fantix
Created: 5/1/2022
Status: Merged
Merged: 5/8/2022
Merged by: @bluejekyll

Base: mainHead: custom-hosts


📝 Commits (3)

  • 1e6f163 Allow customizing the static hosts configuration
  • 3e601c0 Publicize resolver::system_conf::unix::parse_resolv_conf
  • 779b12e CRF: merge impl and raise io::Error

📊 Changes

4 files changed (+68 additions, -63 deletions)

View changed files

📝 crates/resolver/src/async_resolver.rs (+5 -0)
📝 crates/resolver/src/hosts.rs (+61 -61)
📝 crates/resolver/src/system_conf/mod.rs (+1 -1)
📝 crates/resolver/src/system_conf/unix.rs (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/1705 **Author:** [@fantix](https://github.com/fantix) **Created:** 5/1/2022 **Status:** ✅ Merged **Merged:** 5/8/2022 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `main` ← **Head:** `custom-hosts` --- ### 📝 Commits (3) - [`1e6f163`](https://github.com/hickory-dns/hickory-dns/commit/1e6f1635e5ae09f17d96cf9e5b3f17040adf0444) Allow customizing the static hosts configuration - [`3e601c0`](https://github.com/hickory-dns/hickory-dns/commit/3e601c053beb93b7ef11372f167530500c0b17b8) Publicize resolver::system_conf::unix::parse_resolv_conf - [`779b12e`](https://github.com/hickory-dns/hickory-dns/commit/779b12efc4aa6e94dae3bc10052577ed90944c71) CRF: merge impl and raise io::Error ### 📊 Changes **4 files changed** (+68 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `crates/resolver/src/async_resolver.rs` (+5 -0) 📝 `crates/resolver/src/hosts.rs` (+61 -61) 📝 `crates/resolver/src/system_conf/mod.rs` (+1 -1) 📝 `crates/resolver/src/system_conf/unix.rs` (+1 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 10:06:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#2537
No description provided.