<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Dns on Linux Café</title>
    <link>https://mrtomlinux.org/tags/dns/</link>
    <description>Recent content in Dns on Linux Café</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 28 Oct 2026 11:13:18 +0200</lastBuildDate>
    <atom:link href="https://mrtomlinux.org/tags/dns/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fixing the 2‑second DNS lookup lag on my Pi by tweaking resolvectl and systemd‑resolved cache</title>
      <link>https://mrtomlinux.org/post/2026-10-28-fixing-the-2second-dns-lookup-lag-on-my-pi-by/</link>
      <pubDate>Wed, 28 Oct 2026 11:13:18 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-28-fixing-the-2second-dns-lookup-lag-on-my-pi-by/</guid>
      <description>&lt;h2 id=&#34;the-2second-dns-lookup-lag-on-a-pi--a-handson-fix&#34;&gt;The 2‑second DNS lookup lag on a Pi – a hands‑on fix&lt;/h2&gt;&#xA;&lt;p&gt;I was running a Pi‑4‑based home‑lab that hosts a few services: a personal Git server, a small reverse‑proxy stack, and a few IoT sensors that ping the Pi every few seconds. Every time I pinged a domain that wasn’t in the local cache, I noticed a ~2 s pause before the first packet left the network interface. On a desktop that latency was negligible, but on the Pi it was a noticeable hiccup that made the sensor logs look a little jittery.&lt;/p&gt;</description>
    </item>
    <item>
      <title>systemd‑resolved’s DNS Cache Stale After a Router Update: My One‑Command Fix</title>
      <link>https://mrtomlinux.org/post/2026-10-07-systemdresolveds-dns-cache-stale-after-a-rout/</link>
      <pubDate>Wed, 07 Oct 2026 09:06:40 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-07-systemdresolveds-dns-cache-stale-after-a-rout/</guid>
      <description>&lt;p&gt;I was staring at a blinking screen of a freshly flashed router when I realized the whole LAN had lost its DNS mojo. I could ping &lt;code&gt;192.168.1.1&lt;/code&gt; fine, but &lt;code&gt;curl example.com&lt;/code&gt; slammed back with &lt;em&gt;“Could not resolve host”&lt;/em&gt;. No amount of &lt;code&gt;dig&lt;/code&gt; or &lt;code&gt;nslookup&lt;/code&gt; helped until I dug into &lt;strong&gt;systemd‑resolved&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-systemdresolved-holds-on-to-old-dns&#34;&gt;Why systemd‑resolved Holds on to Old DNS&lt;/h2&gt;&#xA;&lt;p&gt;systemd‑resolved is the default resolver on most recent distros. It keeps a cache of answers to cut down on DNS traffic and speed things up. The cache is keyed by the DNS server that answered and the TTL that server advertised. When a router’s firmware changes, its DHCP server may hand out a new DNS IP or a new list of servers. systemd‑resolved will keep the old server in memory until it gets a fresh lease or the cache expires. If the new server is unreachable, all lookups die.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fixing ACME DNS‑01 on a Home Lab Using Pi‑hole and Cloudflare</title>
      <link>https://mrtomlinux.org/post/2026-10-04-fixing-acme-dns01-on-a-home-lab-using-pihole-/</link>
      <pubDate>Sun, 04 Oct 2026 11:12:02 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-10-04-fixing-acme-dns01-on-a-home-lab-using-pihole-/</guid>
      <description>&lt;p&gt;Running a single DNS server on a Raspberry Pi or a tiny VM is a common pattern in home labs.&lt;br&gt;&#xA;When Let’s Encrypt asks you to prove domain ownership via a DNS‑01 challenge, the classic “edit a TXT record” dance becomes a chore if you’re juggling Cloudflare’s web UI.&lt;br&gt;&#xA;Below is a quick, repeatable recipe that plugs a Pi‑hole into Cloudflare’s API, lets Cert‑bot finish the challenge automatically, and keeps the whole thing lean and secure.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting Slow DNS Lookups with systemd-resolved on My Linux Homelab Server</title>
      <link>https://mrtomlinux.org/post/2026-08-15-troubleshooting-slow-dns-lookups-with-systemd/</link>
      <pubDate>Sat, 15 Aug 2026 08:23:42 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-08-15-troubleshooting-slow-dns-lookups-with-systemd/</guid>
      <description>&lt;h2 id=&#34;introduction-to-troubleshooting-slow-dns-lookups&#34;&gt;Introduction to Troubleshooting Slow DNS Lookups&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been running a Linux homelab server for a while now, and one issue that&amp;rsquo;s caught my attention recently is slow DNS lookups. With the increasing reliance on online services, fast and reliable DNS resolution is crucial. I noticed my server was taking longer than usual to resolve domain names, affecting my homelab&amp;rsquo;s overall performance. After digging in, I found the issue was related to &lt;code&gt;systemd-resolved&lt;/code&gt;, the DNS resolver service that comes bundled with systemd. I&amp;rsquo;ve seen this go wrong when the default resolvers aren&amp;rsquo;t responding quickly.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming systemd-resolved: My Journey to Reliable DNS Resolution at Home</title>
      <link>https://mrtomlinux.org/post/2026-08-07-taming-systemd-resolved-my-journey-to-reliabl/</link>
      <pubDate>Fri, 07 Aug 2026 10:17:24 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-08-07-taming-systemd-resolved-my-journey-to-reliabl/</guid>
      <description>&lt;h2 id=&#34;introduction-to-systemd-resolved&#34;&gt;Introduction to systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve always been curious about how my Linux system resolves domain names. Recently, I&amp;rsquo;ve been dealing with some DNS resolution issues at home, which led me to dig into &lt;code&gt;systemd-resolved&lt;/code&gt;. As it turns out, many Linux distributions, including Ubuntu and Fedora, use &lt;code&gt;systemd-resolved&lt;/code&gt; as their DNS resolver by default. In this article, I&amp;rsquo;ll share my experience with getting reliable DNS resolution at home using &lt;code&gt;systemd-resolved&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-systemd-resolved&#34;&gt;Understanding systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;systemd-resolved&lt;/code&gt; is part of the systemd suite and provides a DNS resolver service. It&amp;rsquo;s designed to be a caching, validating, and recursive DNS resolver - which means it can cache DNS responses, validate DNSSEC records, and perform recursive DNS lookups. To check if &lt;code&gt;systemd-resolved&lt;/code&gt; is running on your system, you can use the following command:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming the systemd-resolved Cache to Fix DNS Lookup Failures on My Home Network</title>
      <link>https://mrtomlinux.org/post/2026-07-23-taming-the-systemd-resolved-cache-to-fix-dns-/</link>
      <pubDate>Thu, 23 Jul 2026 09:17:11 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-23-taming-the-systemd-resolved-cache-to-fix-dns-/</guid>
      <description>&lt;h2 id=&#34;introduction-to-systemd-resolved&#34;&gt;Introduction to systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been dealing with DNS lookup failures on my home network, and I&amp;rsquo;ve found that the &lt;code&gt;systemd-resolved&lt;/code&gt; cache can be a major culprit. I&amp;rsquo;ve seen this go wrong when the cache becomes outdated or corrupted, leading to frustrating DNS lookup failures. In this article, I&amp;rsquo;ll share my experience with taming the &lt;code&gt;systemd-resolved&lt;/code&gt; cache to fix these issues.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-the-systemd-resolved-cache&#34;&gt;Understanding the systemd-resolved Cache&lt;/h2&gt;&#xA;&lt;p&gt;The real trick is to understand how the &lt;code&gt;systemd-resolved&lt;/code&gt; cache works. It&amp;rsquo;s designed to improve DNS lookup performance by storing recent queries and their results. However, this cache can become outdated or corrupted, leading to DNS lookup failures. To get a better understanding of the cache, let&amp;rsquo;s take a look at the &lt;code&gt;systemd-resolved&lt;/code&gt; configuration file, usually located at &lt;code&gt;/etc/systemd/resolved.conf&lt;/code&gt;. You can view the file using the following command:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming systemd-resolved: How I Stopped It From Overriding My resolv.conf Settings</title>
      <link>https://mrtomlinux.org/post/2026-07-18-taming-systemd-resolved-how-i-stopped-it-from/</link>
      <pubDate>Sat, 18 Jul 2026 11:18:00 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-18-taming-systemd-resolved-how-i-stopped-it-from/</guid>
      <description>&lt;h2 id=&#34;introduction-to-systemd-resolved&#34;&gt;Introduction to systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve seen this go wrong when working with Linux systems - &lt;code&gt;systemd-resolved&lt;/code&gt; taking over your DNS settings without warning. As a Linux user, you&amp;rsquo;re likely familiar with the &lt;code&gt;resolv.conf&lt;/code&gt; file, which contains the DNS resolver configuration for your system. However, with the introduction of &lt;code&gt;systemd-resolved&lt;/code&gt;, things have changed. &lt;code&gt;systemd-resolved&lt;/code&gt; is a systemd service that provides DNS resolution and caching, and it can sometimes override the settings in your &lt;code&gt;resolv.conf&lt;/code&gt; file. In this article, we&amp;rsquo;ll explore how to tame &lt;code&gt;systemd-resolved&lt;/code&gt; and prevent it from overriding your &lt;code&gt;resolv.conf&lt;/code&gt; settings.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming systemd-resolved: My Journey to Fixing DNS Leaks and Annoying resolver Errors on My Linux Desktop</title>
      <link>https://mrtomlinux.org/post/2026-07-17-taming-systemd-resolved-my-journey-to-fixing-/</link>
      <pubDate>Fri, 17 Jul 2026 10:38:33 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-17-taming-systemd-resolved-my-journey-to-fixing-/</guid>
      <description>&lt;h2 id=&#34;introduction-to-systemd-resolved&#34;&gt;Introduction to systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve spent years working with Linux, and one component that&amp;rsquo;s given me trouble is &lt;code&gt;systemd-resolved&lt;/code&gt;, the DNS resolver service that comes bundled with systemd. Recently, I noticed my DNS queries were leaking, and I was getting annoying resolver errors on my Linux desktop. This prompted me to dive deeper into &lt;code&gt;systemd-resolved&lt;/code&gt; and figure out how to tame it. I&amp;rsquo;ve seen this go wrong when people don&amp;rsquo;t take the time to understand how it works, so let&amp;rsquo;s start with the basics.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting DNS Resolution Issues in My Homelab with Unbound and dnsmasq</title>
      <link>https://mrtomlinux.org/post/2026-07-14-troubleshooting-dns-resolution-issues-in-my-h/</link>
      <pubDate>Tue, 14 Jul 2026 09:00:28 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-14-troubleshooting-dns-resolution-issues-in-my-h/</guid>
      <description>&lt;h2 id=&#34;introduction-to-dns-resolution-issues&#34;&gt;Introduction to DNS Resolution Issues&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve had my fair share of DNS resolution issues in my homelab over the years. Recently, I switched from using a single DNS resolver to a combination of Unbound and dnsmasq. This setup has been working well for me, but I&amp;rsquo;ve still encountered some issues that required troubleshooting. The real trick is identifying the root cause of the problem, which can be tricky.&lt;/p&gt;&#xA;&lt;h2 id=&#34;understanding-unbound-and-dnsmasq&#34;&gt;Understanding Unbound and dnsmasq&lt;/h2&gt;&#xA;&lt;p&gt;Unbound is a recursive DNS resolver that provides a secure and private way to resolve domain names. It&amp;rsquo;s designed to be fast, efficient, and highly configurable. Dnsmasq, on the other hand, is a lightweight DNS forwarder and DHCP server. I&amp;rsquo;ve seen this go wrong when people don&amp;rsquo;t configure them correctly, so it&amp;rsquo;s essential to understand how they work together. In practice, using Unbound and dnsmasq together provides a good balance between security and performance.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Resolving DNS Troubles at Home: A systemd-resolved and dnsmasq Setup Gone Wrong</title>
      <link>https://mrtomlinux.org/post/2026-07-07-resolving-dns-troubles-at-home-a-systemd-reso/</link>
      <pubDate>Tue, 07 Jul 2026 09:00:33 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-07-07-resolving-dns-troubles-at-home-a-systemd-reso/</guid>
      <description>&lt;h2 id=&#34;introduction-to-dns-troubles&#34;&gt;Introduction to DNS Troubles&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been running my homelab for years, and one thing that still gets me is DNS troubles. Last year, I decided to set up &lt;code&gt;systemd-resolved&lt;/code&gt; and &lt;code&gt;dnsmasq&lt;/code&gt; to manage my home network&amp;rsquo;s DNS. The idea was to use &lt;code&gt;systemd-resolved&lt;/code&gt; as the primary resolver and &lt;code&gt;dnsmasq&lt;/code&gt; as a caching layer to improve performance. Sounds simple, but it didn&amp;rsquo;t quite work out that way.&lt;/p&gt;&#xA;&lt;h2 id=&#34;setting-up-systemd-resolved&#34;&gt;Setting Up systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;To start, I enabled &lt;code&gt;systemd-resolved&lt;/code&gt; on my Ubuntu-based server. This involved editing the &lt;code&gt;/etc/systemd/resolved.conf&lt;/code&gt; file to set the DNS servers and domains. I opted for Cloudflare&amp;rsquo;s DNS servers - they&amp;rsquo;re known for being fast and secure.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Taming systemd-resolved: My Journey to Reliable DNS Resolution at Home</title>
      <link>https://mrtomlinux.org/post/2026-06-10-taming-systemd-resolved-my-journey-to-reliabl/</link>
      <pubDate>Wed, 10 Jun 2026 08:31:17 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-10-taming-systemd-resolved-my-journey-to-reliabl/</guid>
      <description>&lt;h2 id=&#34;introduction-to-systemd-resolved&#34;&gt;Introduction to systemd-resolved&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been using Linux for years, and I&amp;rsquo;ve had my fair share of struggles with DNS resolution. Recently, I decided to take a closer look at &lt;code&gt;systemd-resolved&lt;/code&gt;, the DNS resolver component of systemd. I was looking for a reliable way to resolve DNS at home, and I&amp;rsquo;m happy to share what I&amp;rsquo;ve learned.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-systemd-resolved&#34;&gt;What is systemd-resolved?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;systemd-resolved&lt;/code&gt; is a system service that provides DNS resolution for Linux systems. It&amp;rsquo;s designed to replace traditional DNS resolvers like &lt;code&gt;bind&lt;/code&gt; and &lt;code&gt;dnsmasq&lt;/code&gt;. One of the key benefits of &lt;code&gt;systemd-resolved&lt;/code&gt; is its integration with the rest of the systemd ecosystem, making it easy to manage and configure. Don&amp;rsquo;t bother with &lt;code&gt;bind&lt;/code&gt; and &lt;code&gt;dnsmasq&lt;/code&gt; unless you have a specific reason to - &lt;code&gt;systemd-resolved&lt;/code&gt; is a solid choice for most users.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting DNS Resolution Issues in My Homelab with Unbound and systemd-resolved</title>
      <link>https://mrtomlinux.org/post/2026-06-06-troubleshooting-dns-resolution-issues-in-my-h/</link>
      <pubDate>Sat, 06 Jun 2026 09:40:24 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-06-06-troubleshooting-dns-resolution-issues-in-my-h/</guid>
      <description>&lt;h2 id=&#34;introduction-to-dns-resolution-issues&#34;&gt;Introduction to DNS Resolution Issues&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been running my own homelab for years, and like many of you, I&amp;rsquo;ve had my fair share of DNS resolution issues. Last year, I decided to ditch my router as a DNS server and set up Unbound and systemd-resolved on my Linux machines instead. The goal was to improve DNS resolution speed and security, but as you can probably guess, it wasn&amp;rsquo;t all smooth sailing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>DNS and DNS Servers for Linux</title>
      <link>https://mrtomlinux.org/post/dns/</link>
      <pubDate>Sun, 26 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://mrtomlinux.org/post/dns/</guid>
      <description>&lt;p&gt;The Domain Name System (DNS) is a fundamental component of the internet. It translates human-readable domain names like &lt;code&gt;example.com&lt;/code&gt; into IP addresses such as &lt;code&gt;93.184.216.34&lt;/code&gt;, allowing users to connect to websites and services without memorizing numerical addresses. For Linux users, understanding DNS and managing DNS servers is essential for troubleshooting, configuring networks, and ensuring smooth internet connectivity.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-dns&#34;&gt;What is DNS?&lt;/h2&gt;&#xA;&lt;p&gt;DNS functions as the internet&amp;rsquo;s phonebook. When you type a domain name into a browser, DNS resolves it into the corresponding IP address so your computer can establish a connection. This resolution process involves several DNS components:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
