CLI commands

DNS

openclaw dns

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

相關內容:

dns setup

規劃或套用 CoreDNS 設定,以進行單點傳播 DNS-SD 探索。

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