-
Notifications
You must be signed in to change notification settings - Fork 12
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
[dns] resolution fails on linux if running avahi-daemon #14
Comments
i havent tried linux setup with avahi but was aware of its existence. i take it you are unblocked by disabling it? were you relying on it on your system, or was it just default install?
…Sent from my iPhone
On Aug 7, 2019, at 1:11 PM, Sam Schlegel ***@***.***> wrote:
If running avahi on Linux, it seems that it takes priority over the cluster.local. stub. dig works fine as that bypasses mDNS. Disabling avahi fixes name resolution.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I rely on it for printing and connecting to some servers on my LAN, so while disabling it unblocked running |
i see. looks like currently i only enable mdns on os x: https://github.com/k14s/kwt/blob/01506ff961c116370c4c7ceed1f6067d9630df57/pkg/kwt/cmd/net/dns_flags.go#L32 which controls https://github.com/k14s/kwt/blob/01506ff961c116370c4c7ceed1f6067d9630df57/pkg/kwt/cmd/net/dns_factory.go#L45 can you try running |
Hmm. |
I could debug with Wireshark or something later, but for now I just adjusted my |
I fixed it by moving the "dns" flag before the "mdns" flag in the /etc/nsswitch.conf. My "hosts" entry in that file now looks like this:
|
@phluks Thanks for this, your solution works for me. @cppforlife thanks for bringing my attention to this issue in particular and thanks for the k14s in general. Brilliant work. |
If running avahi on Linux, it seems that it takes priority over the
cluster.local.
stub.dig
works fine as that bypasses mDNS. Disabling avahi fixes name resolution.The text was updated successfully, but these errors were encountered: