Files
openclaw/docs/cli/dns.md
T

49 lines
1.4 KiB
Markdown
Raw Normal View History

2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
summary: "CLI reference for `openclaw dns` (wide-area discovery helpers)"
2026-01-15 06:12:54 +00:00
read_when:
- You want wide-area discovery (DNS-SD) via Tailscale + CoreDNS
2026-01-30 03:15:10 +01:00
- Youre setting up split DNS for a custom discovery domain (example: openclaw.internal)
2026-01-31 16:04:03 -05:00
title: "dns"
2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
# `openclaw dns`
2026-01-15 06:12:54 +00:00
DNS helpers for wide-area discovery (Tailscale + CoreDNS). Currently focused on macOS + Homebrew CoreDNS.
Related:
2026-01-31 21:13:13 +09:00
2026-01-15 06:12:54 +00:00
- Gateway discovery: [Discovery](/gateway/discovery)
- Wide-area discovery config: [Configuration](/gateway/configuration)
## Setup
```bash
2026-01-30 03:15:10 +01:00
openclaw dns setup
2026-04-04 08:36:27 +01:00
openclaw dns setup --domain openclaw.internal
2026-01-30 03:15:10 +01:00
openclaw dns setup --apply
2026-01-15 06:12:54 +00:00
```
2026-04-04 08:36:27 +01:00
## `dns setup`
Plan or apply CoreDNS setup for unicast DNS-SD discovery.
Options:
- `--domain <domain>`: wide-area discovery domain (for example `openclaw.internal`)
- `--apply`: install or update CoreDNS config and restart the service (requires sudo; macOS only)
What it shows:
- resolved discovery domain
- zone file path
- current tailnet IPs
- recommended `openclaw.json` discovery config
- the Tailscale Split DNS nameserver/domain values to set
Notes:
- Without `--apply`, the command is a planning helper only and prints the recommended setup.
- If `--domain` is omitted, OpenClaw uses `discovery.wideArea.domain` from config.
- `--apply` currently supports macOS only and expects Homebrew CoreDNS.
- `--apply` bootstraps the zone file if needed, ensures the CoreDNS import stanza exists, and restarts the `coredns` brew service.