Custom DNS server ignored with user namespace #16060
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
network
Networking related issue or feature
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When running a rootful container/pod with user namespace, any provided custom DNS server is ignored and always overwritten when attaching to a CNI network with
dnsname
enabled. Without user namespace the provided DNS server is correctly entered inetc/resolv.conf
.Steps to reproduce the issue:
Ensure that
containernetworking-plugins
andpodman-plugins
are installed./etc/containers/containers.conf
:podman network create testnet
Verify that
testnet
has DNS support.podman run -it --rm --name testcon --dns=1.2.3.4 --uidmap=0:100000:65536 --gidmap=0:100000:65536 --network=testnet docker.io/wbitt/network-multitool /bin/bash
Describe the results you received:
/etc/resolv.conf
:Describe the results you expected:
/etc/resolv.conf
:Additional information you deem important (e.g. issue happens only occasionally):
Maybe related: #5256
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No
/Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Cloud VM running
Rocky Linux 9.0 (Blue Onyx)
.The text was updated successfully, but these errors were encountered: