Not sure how to troubleshoot this. But my container host has this in the DNS:
# resolvectl status Global Protocols: LLMNR=resolve -mDNS +DNSOverTLS DNSSEC=yes/supported resolv.conf mode: foreign Current DNS Server: 184.108.40.206 DNS Servers: 220.127.116.11 Link 2 (eth0) Current Scopes: LLMNR/IPv4 LLMNR/IPv6 Protocols: -DefaultRoute +LLMNR -mDNS +DNSOverTLS DNSSEC=yes/supported
I start my container with:
podman run --dns 18.104.22.168 --rm -it fedora cat /etc/resolv.conf nameserver 22.214.171.124
And as you can see it uses 126.96.36.199 for DNS, but
dnf cannot resolve any URLs.
This container host is freshly installed.
firewall-cmd has log-denied messages on, I see nothing blocked by the firewall. Forwarding is on in firewalld. I also enabled
net.ipv4.ip_forward = 1 as a test with
net.ipv6.conf.all.forwarding = 1, but no difference.
Anything else I should check?