-
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
resetting user-mode-networking cause dns issues #20952
Comments
A friendly reminder that this issue had no activity for 30 days. |
Hello I had similar issue (using podman on windows) just after doing
For my case , root cause was "an invalid config" pushed into /etc/resolv.conf (inside the podman WSL distribution). I'm not sure what from above steps causes a wrong edition of /etc/resolv.conf .. but for sure it breaks all the DNS resolution, making network no more usable. Note1: Just re-editing the /etc/resolv.conf worked for me
Note2: Normally the /etc/wsl.conf can be edited to explicit "generateResolvConf = false" If, like me, you run podman from windows , the actual default DNS server can be found using following powershell comand |
@jsearby Thank you so much for this answer! I had to reinstall Podman into v4.9.0 and I had the exact same experience. I'm behind a corporate network, so it's important the DNS stays the same. Not sure what changed since last, but I'm quite sure this will break for many other users as well. Your fix worked for me, little cumbersome you have to edit it through |
Can you retest with podman 5.0? |
See #24061 for a reproducer on Podman 5.2.2 |
It's still an issue for me as well, and it breaks every time I have to re-create the VM |
Issue Description
I created a podman image, set user-mode-networking and started it. Pulling an image is ok. Then stop it; reset the user-mode-networking, restart it: pull images is rejected
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
$ podman pull alpine
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Error: initializing source docker://alpine:latest: pinging container registry registry-1.docker.io: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution
Describe the results you expected
alpine image should be pulled
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: