CLI commands

DNS

openclaw dns

用於廣域探索的 DNS 輔助工具(Tailscale + CoreDNS)。目前僅支援 macOS + Homebrew CoreDNS。

相關內容:

dns setup

規劃或套用用於單點傳播 DNS-SD 探索的 CoreDNS 設定。

bash
openclaw dns setupopenclaw dns setup --domain openclaw.internalopenclaw dns setup --apply
選項 效果
--domain <domain> 廣域探索網域(例如 openclaw.internal)。
--apply 安裝或更新 CoreDNS 設定,並(重新)啟動服務。需要 sudo,且僅支援 macOS。

若未指定 --domain,OpenClaw 會使用設定中的 discovery.wideArea.domain

若未指定 --apply,此命令只會輸出:

  • 解析後的探索網域與區域檔案路徑
  • 目前的 tailnet IP 位址
  • 建議的 openclaw.json 探索設定
  • 要在 Tailscale 管理控制台中設定的 Tailscale Split DNS 名稱伺服器/網域值

使用 --apply 時(僅支援 macOS,且需要 Homebrew CoreDNS):

  • 若區域檔案不存在,則建立初始檔案
  • 若缺少 CoreDNS 匯入區段,則加以新增
  • 重新啟動 coredns 的 brew 服務

相關內容

Was this useful?
On this page

On this page