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

Resolv caching #5

Open
awworrell opened this issue Feb 17, 2021 · 1 comment
Open

Resolv caching #5

awworrell opened this issue Feb 17, 2021 · 1 comment

Comments

@awworrell
Copy link

I was hoping someone could help explain an issue that I'm experiencing. I have multiple servers that seem to be caching an ip address that no longer exists. Here is the irb below

image

The addresses ending in 117 no longer exist and any others are fine. It's important to note that i've changed all ip addresses, nameservers, and other information to ensure it's not visible where this is from.

could someone help explain how resolv caches and how is that cleared? This is running ruby 2.6.3

@jeremyevans
Copy link
Contributor

This could be due to your default resolver is using a configuration different than your dns variable is using. By default, Resolv.getaddress will use the hosts file, and then the information in /etc/resolv.conf (or whatever the operating system resolver configuration file is).

If you think this is still a problem with resolv, please provide a self contained reproducible example, such as a minimal DNS server configuration and Ruby program that reproduces the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants