-
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
[Bug]: DNS doesn't work for containers #17169
Comments
I think dns is usually not enabled on default network, could you please do |
Yes, that's correct. DNS is disabled for the default network. New networks have DNS enabled by default. Does it work with another (newly created) network, @m0nhawk ? |
|
`default` is already used as network mode, i.e. podman run --network default will choose the default mode not a network named `default`. We already block names from other network modes, default was forgotten. Fixes containers#17169 Signed-off-by: Paul Holzinger <[email protected]>
The newly created network (with @Luap99 I appreciate for this comment, I just tried this with different network name and it's working as expected. Though, I couldn't find any limits on network names while skimming documentation, and the default podman network is called |
Well in terms if network names the backend code does not care, the problem is with the cli parsing |
Remind me why DNS is not working on the default network. I know Docker does it this way, but it seems like a stupid default, and people are always opening issues on it, or figuring it does not work at all. |
Issue Description
Connecting from one container to another via names.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you expected
Resolve of DNS name and default nginx page.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
No additional details, tried clean installs of Fedora 37 and Fedora CoreOS 37, both rootless and rootfull containers, both DOESN'T work.
Additional information
Adding
--hostname
doesn't help.The text was updated successfully, but these errors were encountered: