DNS cache poisoning is a classic attack that can redirect traffic from a legitimate domain to a malicious IP. On a Raspberry Pi running a recent Debian‑based OS (e.g., Raspberry Pi OS 2026‑stable), the default resolver is systemd‑resolved, which exposes the resolvectl command. This guide shows how to harden that resolver in a single, repeatable step, with practical examples, caveats, and troubleshooting tips.
Why the Pi is a Target
- Low‑cost, always‑on devices are often used as home routers, media servers, or IoT gateways.
- Many users leave the default DNS settings unchanged, pointing to public resolvers (Google, Cloudflare, ISP).
- A compromised Pi can become a pivot point for lateral movement or a source of DNS‑based exfiltration.
Hardening the resolver is a low‑effort, high‑impact measure.
[Read More]