Title
Create new category
Edit page index title
Edit category
Edit link
How to fix 'Name does not resolve' error in RHEL / Rocky Linux 8 with Podman
Overview
By default, Rocky Linux / RHEL 8.x uses the CNI DNS plugin as its container networking DNS backend (most common with Podman + CNI). This can cause services to fail to communicate with the database or external network.
Rocky Linux / RHEL 9.x ships with aardvark-dns and netavark, Podman's modern network stack, which resolves these issues.
Long-term recommendation: Upgrade to Rocky Linux / RHEL 9. The steps below are a workaround for systems that cannot yet be upgraded.
Temporary solution: Change DNS library
⚠️ Note: This procedure requires an active internet connection and must be performed with sudo (root) privileges.
Step 1: Stop MDSS
sudo mdss -c stopStep 2 — Install netavark and aardvark-dns
sudo dnf install -y netavark aardvark-dnsStep 3 — Configure Podman to Use the new network backend
Edit /etc/containers/containers.conf and add the following section:
[network]network_backend = "netavark"dns_enabled = trueIf the file does not exist, create it at /etc/containers/containers.conf.
Step 4 — Clean Up Old Podman Configuration
Remove the old CNI network configuration and restart Podman:
sudo podman container prune -fsudo podman network prune -fsudo rm -rf /etc/cni/net.d/*sudo rm -rf /var/lib/cni/networks/*sudo systemctl restart podmanStep 5 - Validate the new DNS library is used
Run these commands:
echo "Network Backend: $(sudo podman info --format '{{.Host.NetworkBackend}}')"echo "DNS Packages: $(rpm -qa | grep -E 'dnsname|netavark|aardvark')"You should see something like this:
Network Backend: netavarkDNS Packages: aardvark-dns-1.16.0-1.el9.x86_64Step 6 — Start MDSS
sudo mdss -c startIt should now work as expected.
