[PR #2093] [MERGED] Add getters for resolver config and options #2802

Closed
opened 2026-03-16 11:09:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2093
Author: @hoxxep
Created: 11/17/2023
Status: Merged
Merged: 11/20/2023
Merged by: @djc

Base: mainHead: resolver-config-getter


📝 Commits (2)

  • fefd028 Add getters for resolver config and options
  • 6b44021 Clippy cleanup for config and options getters

📊 Changes

2 files changed (+20 additions, -0 deletions)

View changed files

📝 crates/resolver/src/async_resolver.rs (+10 -0)
📝 crates/resolver/src/resolver.rs (+10 -0)

📄 Description

This PR adds getters to Resolver and AsyncResolver for the config and options fields of the struct, to enable inspecting a resolver's configuration after instantiation.


🔄 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/2093 **Author:** [@hoxxep](https://github.com/hoxxep) **Created:** 11/17/2023 **Status:** ✅ Merged **Merged:** 11/20/2023 **Merged by:** [@djc](https://github.com/djc) **Base:** `main` ← **Head:** `resolver-config-getter` --- ### 📝 Commits (2) - [`fefd028`](https://github.com/hickory-dns/hickory-dns/commit/fefd0281547e518de21d28a28059014226b8f364) Add getters for resolver config and options - [`6b44021`](https://github.com/hickory-dns/hickory-dns/commit/6b44021ddda741c5d1a7f065630fc0e6bc96dff3) Clippy cleanup for config and options getters ### 📊 Changes **2 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/resolver/src/async_resolver.rs` (+10 -0) 📝 `crates/resolver/src/resolver.rs` (+10 -0) </details> ### 📄 Description This PR adds getters to `Resolver` and `AsyncResolver` for the `config` and `options` fields of the struct, to enable inspecting a resolver's configuration after instantiation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:09:00 +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#2802
No description provided.