Skip to content

refactor(dns): make hickory module internal - #881

Merged
0x676e67 merged 2 commits into
mainfrom
dns
Aug 9, 2025
Merged

refactor(dns): make hickory module internal#881
0x676e67 merged 2 commits into
mainfrom
dns

Conversation

@0x676e67

@0x676e67 0x676e67 commented Aug 9, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the DNS module by making the hickory DNS resolver internal and simplifying its API. The changes consolidate DNS configuration by removing the custom LookupIpStrategy enum and defaulting to a fixed strategy.

  • Simplifies the hickory DNS resolver by removing configurable lookup strategies and using a fixed Ipv4AndIpv6 strategy
  • Changes module visibility to make internal DNS modules private to the crate (pub(crate))
  • Replaces Arc<TokioResolver> with a static LazyLock<TokioResolver> for better resource management

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/core/client/connect/dns/mod.rs Changes module visibility from public to crate-internal
src/core/client/connect/dns/hickory.rs Removes custom LookupIpStrategy enum and simplifies resolver construction
src/client/http/mod.rs Updates resolver instantiation to use the simplified API

Comment thread src/core/client/connect/dns/hickory.rs
Comment thread src/core/client/connect/dns/hickory.rs
@0x676e67
0x676e67 marked this pull request as ready for review August 9, 2025 09:47
@0x676e67
0x676e67 merged commit e441048 into main Aug 9, 2025
7 checks passed
@0x676e67
0x676e67 deleted the dns branch August 9, 2025 10:26
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