A “no such host” after you restart systemd‑resolved usually means more than a flaky network. It’s often a symptom of stale state, a mis‑wired socket, or a broken link to your upstream nameservers. Below is a walk‑through that keeps the commands you need and skips the fluff.
Why systemd‑resolved matters for security
On Debian, Ubuntu, Fedora and the likes, systemd‑resolved is the default stub resolver. It keeps a local cache, validates DNSSEC, and is the single point that all processes hit when they read /etc/resolv.conf. If it’s not behaving, you can end up: