Podman adds DNS entries in resolv.conf inside container when no dns entry in host resolv.conf #19037
-
Hi, So my question is why is it adding ipv4 default google dns entries in IPV6 machine. My VM has only IPV6 network enabled. And is there a way to tell podman not to add any entries into the container or add only IPV6 google DNS entries?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If no suitable nameserver is found then podman will default to the google ones. There is extra logic to detect ipv4 only and not add ipv6 servers in such case but there is no such check for ipv6 only so that is definitely something that can be improved. I am not sure why it would add nameservers when there are already some added. That looks like a bug, it should only add them if no servers are found. What podman version is this? If you want full control over the dns use the |
Beta Was this translation helpful? Give feedback.
If no suitable nameserver is found then podman will default to the google ones. There is extra logic to detect ipv4 only and not add ipv6 servers in such case but there is no such check for ipv6 only so that is definitely something that can be improved.
I am not sure why it would add nameservers when there are already some added. That looks like a bug, it should only add them if no servers are found. What podman version is this?
If you want full control over the dns use the
--dns
option. Or set the dns servers in containers.conf.