CLI commands

DNS

openclaw dns

用於廣域探索的 DNS 協助工具(Tailscale + CoreDNS)。目前著重於 macOS + Homebrew CoreDNS。

相關:

設定

openclaw dns setup
openclaw dns setup --domain openclaw.internal
openclaw dns setup --apply

dns setup

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

選項:

  • --domain <domain>:廣域探索網域(例如 openclaw.internal
  • --apply:安裝或更新 CoreDNS 設定並重新啟動服務(需要 sudo;僅限 macOS)

顯示內容:

  • 已解析的探索網域
  • 區域檔案路徑
  • 目前的 tailnet IP
  • 建議的 openclaw.json 探索設定
  • 要設定的 Tailscale 分割 DNS 名稱伺服器/網域值

注意事項:

  • 若未使用 --apply,此命令僅作為規劃協助工具,並會列印建議的設定。
  • 若省略 --domain,OpenClaw 會使用設定中的 discovery.wideArea.domain
  • --apply 目前僅支援 macOS,且預期使用 Homebrew CoreDNS。
  • --apply 會在需要時啟動建立區域檔案、確保 CoreDNS 匯入段落存在,並重新啟動 coredns brew 服務。

相關