<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tailscale on OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/tailscale/</link>
    <description>Recent content in Tailscale on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 24 Jun 2026 18:26:29 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/tailscale/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>
    <item>
      <title>Tailscale 快速组网：macOS &#43; Ubuntu 异地直连实战</title>
      <link>https://blog.ohtly.com/posts/2026-06-14-tailscale-ssh/</link>
      <pubDate>Sun, 14 Jun 2026 23:45:51 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-06-14-tailscale-ssh/</guid>
      <description>&lt;h2 id=&#34;场景&#34;&gt;&#xA;  场景&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e5%9c%ba%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;家里一台 macOS，办公室局域网内一台 Ubuntu VM。以前要 SSH 访问办公室 VM，需要经过跳板机：&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;macOS → 跳板机 → 办公室内网 → VM&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;步骤繁琐，依赖跳板机在线，而且 scp 传文件要走两跳，速度慢。&lt;/p&gt;&#xA;&lt;p&gt;目标：像在内网一样直接访问。&lt;/p&gt;&#xA;&lt;h2 id=&#34;注册&#34;&gt;&#xA;  注册&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e6%b3%a8%e5%86%8c&#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;打开 &lt;a href=&#34;https://tailscale.com&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Tailscale 官网&lt;/a&gt;，用 GitHub 账号授权登录即可。登录后自动创建一个 Tailnet（你的私人网络）。&lt;/p&gt;&#xA;&lt;p&gt;免费版支持 3 个用户、100 台设备，个人使用完全够。&lt;/p&gt;&#xA;&lt;h2 id=&#34;macos-安装&#34;&gt;&#xA;  macOS 安装&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#macos-%e5%ae%89%e8%a3%85&#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;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;brew install --cask tailscale&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;安装后启动，菜单栏出现 Tailscale 图标。点击登录，浏览器打开认证页面，选择 GitHub 账号授权，几秒钟就加入 Tailnet 了。&lt;/p&gt;&#xA;&lt;h2 id=&#34;ubuntu-server-安装&#34;&gt;&#xA;  Ubuntu Server 安装&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#ubuntu-server-%e5%ae%89%e8%a3%85&#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;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -fsSL https://tailscale.com/install.sh | sudo sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo tailscale up&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;第二条命令会输出一个认证链接，浏览器打开，登录同个 GitHub 账号即可。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
