On a busy host, a 1‑second DNS lookup can feel like a blink, but when it happens on every request, it adds up. In 2026, most distributions ship systemd‑resolved as the default resolver, and the default configuration is usually fine. Yet a handful of real‑world scenarios—high‑traffic web servers, containers, or networks with strict firewall rules—expose a subtle 1‑second delay that can be traced back to systemd‑resolved’s handling of upstream DNS servers.
[Read More]Resolve DNS Cache Poisoning on Raspberry Pi with resolvectl – One‑Step Fix
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]Clearing Stale DNS Entries from resolvectl
Fixing resolver caches without restarting NetworkManager
When a host suddenly resolves a domain to an old IP, the first instinct is to restart NetworkManager or reboot the machine. That works, but it’s heavy‑handed and can disrupt services. In a production environment, a brief outage can trigger SLA violations or expose stale data to clients. Below is a concise, hands‑on guide to flushing the systemd‑resolved cache safely, with a focus on security‑aware operators who need minimal downtime.
[Read More]Taming systemd-resolved: Avoiding DNS Surprises on Multi-Network Linux Setups
Introduction to systemd-resolved
I’ve seen systemd-resolved cause some headaches in multi-network setups, so it’s worth understanding how it works. As part of the systemd suite, systemd-resolved is a DNS resolver that’s enabled by default on many modern Linux distributions, including Ubuntu and Fedora. The real trick is configuring it to avoid DNS surprises.
Configuring systemd-resolved
To get systemd-resolved working the way you want, you need to know how it uses DNS servers. It combines the DNS servers provided by your system’s network configuration with those specified in the /etc/systemd/resolved.conf file. Don’t bother with the network configuration; just modify the resolved.conf file to specify your preferred DNS servers. For example, to use Google’s public DNS servers, add the following lines to the [Resolve] section:
Resolving DNS Quirks with systemd-resolved and Split DNSConfigs
Introduction to DNS Quirks and systemd-resolved
I’ve seen my fair share of DNS issues over the years, and in complex network environments, they can become a real headache. These problems often stem from misconfigured DNS servers, conflicting resolver settings, or the challenges of managing split DNS configurations. With systemd-resolved, managing DNS resolution has become more robust and secure. I’ve found it to be an essential tool in my Linux toolkit.
Using resolvectl to Fix DNS Leaks and Improve Linux Network Privacy
Introduction to resolvectl
I’ve seen DNS leaks compromise network privacy time and again, so I’m always on the lookout for ways to tighten up my DNS configuration. As a Linux user, you’re likely familiar with the importance of DNS resolution for accessing websites and services. resolvectl is a powerful tool that comes with systemd, and it’s been a game-changer for managing DNS resolution on my systems.
What is resolvectl?
resolvectl is a command-line utility that allows you to control and configure DNS resolution on your system. It’s part of the systemd suite, which is widely used on modern Linux distributions. With resolvectl, you can set DNS servers, query DNS records, and troubleshoot DNS issues - all from the comfort of your terminal.
Using resolvectl to Debug Stubborn DNS Resolution Issues on Linux
Introduction to resolvectl
I’ve seen my fair share of DNS resolution issues on Linux, and one tool that’s always been a lifesaver is resolvectl. This command-line utility is part of the systemd suite, providing a comprehensive way to query and configure DNS settings on your system. When dealing with stubborn DNS problems, resolvectl is often the first tool I reach for. In this article, we’ll delve into its practical uses for debugging DNS issues, exploring its capabilities, and discussing how it can be used with other tools for a more robust troubleshooting experience.
Taming DNS Lookups on Multi-Homed Linux Machines
Using systemd-resolved to avoid surprises
Introduction to systemd-resolved
I’ve seen this go wrong when working with multi-homed Linux machines: DNS lookup surprises can be a real pain. A multi-homed machine, with multiple network interfaces each connected to a different network, can lead to DNS resolution problems. The system may not know which interface to use for DNS lookups, causing all sorts of issues. This is where people usually get burned - trying to troubleshoot DNS problems without a clear understanding of how their system is configured. To address this issue, I usually start with systemd-resolved, a tool that can help manage DNS resolution and provide more predictable behavior.
[Read More]Using systemd-resolved with Multiple DNS Servers and Split Horizon DNS
Introduction to systemd-resolved
I’ve been using systemd-resolved for a while now, and I have to say, it’s a game-changer when it comes to managing DNS resolution on Linux systems. As of 2026, it’s become a crucial component in many Linux distributions, including Ubuntu, Debian, and Fedora. In this article, I’ll walk you through how to use systemd-resolved with multiple DNS servers and split horizon DNS, including some practical examples and troubleshooting notes.
[Read More]Resolving DNS Issues with resolvectl and systemd-resolved in a Home Network
Introduction to DNS Resolution
When setting up a home network, DNS resolution is one of those critical components that can be a real pain to troubleshoot. I’ve seen this go wrong when people are new to Linux, so let’s dive into how to use resolvectl to resolve DNS issues with systemd-resolved.
Understanding systemd-resolved
systemd-resolved is a system service that handles DNS resolution, among other network-related tasks. It’s part of the systemd suite and is widely used in many Linux distributions, including Ubuntu, Debian, and Fedora. The real trick is that systemd-resolved provides improved DNS security and better support for modern DNS protocols like DNS over TLS (DoT) and DNS over HTTPS (DoH). Don’t bother with trying to use it without understanding these benefits, as they’re a key part of what makes systemd-resolved so useful.