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

VNet: Respect priority of ordered nameservers in /etc/resolv.conf #53289

Open
ravicious opened this issue Mar 21, 2025 · 0 comments
Open

VNet: Respect priority of ordered nameservers in /etc/resolv.conf #53289

ravicious opened this issue Mar 21, 2025 · 0 comments
Labels

Comments

@ravicious
Copy link
Member

When VNet receives a DNS query and it doesn't find a match for the given fqdn, it forwards the request to other nameservers used by the system.

// Forward the message to each upstream nameserver concurrently, the first to answer wins.
// Each goroutine will write a single error or a single response to the appropriate channel.
// Each goroutine should quickly exit after the context is canceled.
responses := make(chan []byte, len(upstreamNameservers))

Instead of racing them all, we should respect the priority of ordered nameservers as they're defined in /etc/resolv.conf and add a short delay for each one down the list.

@ravicious ravicious added the vnet label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant