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

Raise a warning log msg when overriding the user's selected --local-addr #488

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

phillip-stephens
Copy link
Contributor

@phillip-stephens phillip-stephens commented Dec 18, 2024

Resolves #481

ZDNS tries to ensure that its config is valid before resolving. The default --name-servers come from /etc/resolv.conf. If that --name-server is a link-local IP address, we'll override whatever --local-addr is provided so we can reach the nameserver.

In this case, #481 was rightfully confused when this behavior was not made apparent to the user. But elevating this to a warn, we can inform the user of what we're doing, and they can select a new --name-servers if they need.

…nk-local resolver, they'll use a link-local ip address, regardless of what they specifified
@phillip-stephens phillip-stephens marked this pull request as ready for review December 18, 2024 21:36
@phillip-stephens phillip-stephens requested a review from a team as a code owner December 18, 2024 21:36
@zakird zakird merged commit 32f8ca1 into main Dec 18, 2024
3 checks passed
@zakird zakird deleted the phillip/481-warn-when-changing-local-addr branch December 18, 2024 22:41
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.

[Bug] The --local-addr option is invalid ?
2 participants