<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Systemd-Resolved on OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/systemd-resolved/</link>
    <description>Recent content in Systemd-Resolved on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 23 Jun 2026 15:31:05 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/systemd-resolved/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>怎么设置 NetBird 网络的 DNS</title>
      <link>https://blog.ohtly.com/posts/2026-06-23-netbird-dns-setup/</link>
      <pubDate>Tue, 23 Jun 2026 15:31:05 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-06-23-netbird-dns-setup/</guid>
      <description>&lt;h2 id=&#34;背景&#34;&gt;&#xA;  背景&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e8%83%8c%e6%99%af&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;自建 NetBird 控制平面后，节点间可以通过 &lt;code&gt;*.netbird.selfhosted&lt;/code&gt; 域名互相访问。但实际部署中发现 DNS 表现因节点环境而异，部分节点需要额外配置才能正常工作。&lt;/p&gt;&#xA;&lt;h2 id=&#34;netbird-dns-的三层结构&#34;&gt;&#xA;  NetBird DNS 的三层结构&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#netbird-dns-%e7%9a%84%e4%b8%89%e5%b1%82%e7%bb%93%e6%9e%84&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;NetBird 的 DNS 由三层组成：&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;应用 → 系统解析器 → NetBird magic DNS (100.121.255.254)&#xA;                         ├── peer 域名 (peer-a.netbird.selfhosted → 100.121.*)&#xA;                         ├── Nameserver Group (*.lan → 100.121.*.*:53 dnsmasq)&#xA;                         └── 普通域名 → 上游 DNS&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;其中 &lt;code&gt;100.121.255.254&lt;/code&gt; 是 NetBird 的 magic DNS 地址（类似 Tailscale 的 &lt;code&gt;100.100.100.100&lt;/code&gt;），负责按域名规则路由查询。&lt;/p&gt;&#xA;&lt;h2 id=&#34;场景一macos&#34;&gt;&#xA;  场景一：macOS&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%9c%ba%e6%99%af%e4%b8%80macos&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;在 macOS 上 NetBird 通过系统框架（&lt;code&gt;scutil&lt;/code&gt;）自动注册 DNS。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
