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

Add DNS resolution caching using dnscache.Resolver{} #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vsouza
Copy link
Member

@vsouza vsouza commented Nov 7, 2024

This PR adds functionality to cache DNS resolutions using the dnscache package. The goal is to improve DNS resolution performance by avoiding repeated lookups for addresses that have already been resolved.

Main changes:

  • Implemented DNS resolution caching using dnscache.Resolver{}.
  • Added unit tests to validate the DNS cache behavior.
  • Updated documentation to reflect the use of DNS caching.

Motivation:

By introducing this feature, we aim to reduce the time spent on frequent DNS lookups, especially in high-load scenarios where multiple resolutions for the same domain are needed. Using dnscache, we expect to optimize the performance of HTTP requests by ensuring the cache is properly used for DNS resolutions.

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.

1 participant