[PR #2524] [MERGED] Add caching policy configuration to recursor #3105

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

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2524
Author: @divergentdave
Created: 10/23/2024
Status: Merged
Merged: 10/25/2024
Merged by: @djc

Base: mainHead: david/recursor-cache-policy


📝 Commits (2)

  • 72bd53c Split out inner struct from DnsLru
  • baaba98 Add caching policy configuration to recursor

📊 Changes

9 files changed (+440 additions, -93 deletions)

View changed files

📝 Cargo.lock (+1 -0)
📝 crates/recursor/src/recursor.rs (+14 -0)
📝 crates/recursor/src/recursor_dns_handle.rs (+3 -1)
📝 crates/resolver/Cargo.toml (+1 -0)
📝 crates/resolver/src/dns_lru.rs (+268 -92)
crates/resolver/src/dns_lru/ttl_config_deserialize.rs (+101 -0)
📝 crates/server/src/store/recursor/authority.rs (+1 -0)
📝 crates/server/src/store/recursor/config.rs (+40 -0)
📝 tests/test-data/test_configs/example_recursor.toml (+11 -0)

📄 Description

This implements #1720. New configuration fields are added to set minimum and maximum TTL limits for the recursor. In addition, separate minimum and maximum TTL limits can be set for specific query types.


🔄 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/2524 **Author:** [@divergentdave](https://github.com/divergentdave) **Created:** 10/23/2024 **Status:** ✅ Merged **Merged:** 10/25/2024 **Merged by:** [@djc](https://github.com/djc) **Base:** `main` ← **Head:** `david/recursor-cache-policy` --- ### 📝 Commits (2) - [`72bd53c`](https://github.com/hickory-dns/hickory-dns/commit/72bd53c8cfbdbb1763777e79d8bcd1e51439e5fb) Split out inner struct from DnsLru - [`baaba98`](https://github.com/hickory-dns/hickory-dns/commit/baaba987541add157248b17a91c9a8815be68f84) Add caching policy configuration to recursor ### 📊 Changes **9 files changed** (+440 additions, -93 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+1 -0) 📝 `crates/recursor/src/recursor.rs` (+14 -0) 📝 `crates/recursor/src/recursor_dns_handle.rs` (+3 -1) 📝 `crates/resolver/Cargo.toml` (+1 -0) 📝 `crates/resolver/src/dns_lru.rs` (+268 -92) ➕ `crates/resolver/src/dns_lru/ttl_config_deserialize.rs` (+101 -0) 📝 `crates/server/src/store/recursor/authority.rs` (+1 -0) 📝 `crates/server/src/store/recursor/config.rs` (+40 -0) 📝 `tests/test-data/test_configs/example_recursor.toml` (+11 -0) </details> ### 📄 Description This implements #1720. New configuration fields are added to set minimum and maximum TTL limits for the recursor. In addition, separate minimum and maximum TTL limits can be set for specific query types. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:25:34 +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#3105
No description provided.