-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman remote bypass system resolver and fails to resolve mDNS hostnames. #10737
Comments
@Jean-Daniel We will have to dig into the cause here. Podman currently delegates this lookup to the Go ssh library. See https://github.com/containers/podman/blob/master/pkg/bindings/connection.go#L263 /cc @baude |
A friendly reminder that this issue had no activity for 30 days. |
@jwhonce Any thing new on this one? |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
@Jean-Daniel Are you still seeing this issue? |
If you ssh into the VM and using podman there, do you see the same problem? |
@rhatdan I have reproduce the issue on Big Sur and it appears to be related to golang/go#12524 . I want to talk to @ashley-cui about packaging to see if we can tweak the Makefile to use cgo when building via homebrew. |
@jwhonce to use cgo in homebrew, it should be as simple as adding |
@ashley-cui Yeah, I'll make a PR with the needed changes to the Makefile. BTW, I used |
Need to use CGO for mDNS resolution, but cross builds need CGO disabled See golang/go#12524 for details Note: Homebrew forumla will need to be updated to pick up this change Fixes containers#10737 Signed-off-by: Jhon Honce <[email protected]>
Need to use CGO for mDNS resolution, but cross builds need CGO disabled See golang/go#12524 for details Note: Homebrew forumla will need to be updated to pick up this change Fixes containers#10737 Signed-off-by: Jhon Honce <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When trying to connect to a ".local" hostname with Podman remote, it tries to resolve the hostname by querying the network DNS instead of using the local resolver and fails to resolve the hostname.
I have a running machine that advertise the
podman.local
hostname using a mDNS daemon. This host is perfectly reachable from my macOS machine using ssh, ping and any other tool. But when trying to connect it usingpodman
, it fails with10.2.0.1
is the local network DNS server (as declared in the generated /etc/resolv.conf) but by bypassing the local resolver/cache, podman fails to properly resolve the remote hostname.Steps to reproduce the issue:
Start a VM with avahi (to advertise the
.local
hostname), and podman.On a host that can reach this VM via ssh, configure a podman remote connection using '.local' as server name.
Try to connect to it (
podman info
)Describe the results you received:
Podman try to use its own DNS resolver machinery and fails to resolve the hostname.
Describe the results you expected:
Podman properly use the system resolver and connect to the remote host.
Output of
podman version
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
The text was updated successfully, but these errors were encountered: