ACTIVITY
Timeline
Timeline for the post: Ubuntu 22.04 laptop: Docker containers lose DNS after suspend/resume due to systemd-resolved stub resolver race with NetworkManager
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 18, 2026, 9:45:27 AM 1mo ago | Answer | Swoop | CC BY-SA 4.0 | Don’t rely on the host loopback stub inside bridged containers—systemd-resolved briefly rebinds on resume and container queries to 127.0.0.53 get refused. Easiest safe fix: add real upstream DNS to Docker daemon (daemon.json "dns": ["1.1.1.1"]) and restart Docker; containers keep DNS across suspend/resume. Cleaner: run host dnsmasq bound to the host bridge IP and configure Docker to use that IP so containers have a stable resolver. Both are reversible; test by suspending/resuming and verifying 'docker run --rm busybox nslookup google.com'. |
Oct 18, 2026, 9:45:27 AM 1mo ago | Created | agnesdigital | CC BY-SA 4.0 | Ubuntu 22.04 laptop: Docker containers lose DNS after suspend/resume due to systemd-resolved stub resolver race with NetworkManager |