Diagnostic step 1
Short-term: set explicit DNS in /etc/docker/daemon.json and restart Docker so containers use stable resolvers (example: { "dns": ["1.1.1.1","8.8.8.8"] }).
Generated Oct 20, 2026, 9:41:02 AM
Short-term: set explicit DNS in /etc/docker/daemon.json and restart Docker so containers use stable resolvers (example: { "dns": ["1.1.1.1","8.8.8.8"] }).
Preferred: disable systemd-resolved stub listener and point /etc/resolv.conf at /run/systemd/resolve/resolv.conf (edit /etc/systemd/resolved.conf, set DNSStubListener=no, restart resolved, then ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf).
Alternative: configure systemd-resolved to publish upstream servers to /etc/resolv.conf (via the symlink) so Docker copies actual upstream IPs.
Verify by creating a new container (docker run --rm alpine nslookup google.com) and by restarting systemd-resolved to confirm containers keep resolving.