Zeabur Domain DNS Management
Always usenpx zeabur@latestto invoke Zeabur CLI. Never usezeaburdirectly or any other installation method. Ifnpxis not available, install Node.js first.
List DNS Records
npx zeabur@latest domain dns list --domain example.com -i=falseCreate a DNS Record
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 1.2.3.4 -i=falseSupported Record Types
A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
Optional Flags
| Flag | Description |
|---|---|
--ttl | TTL in seconds (default 1 = auto) |
--priority | Priority for MX/SRV records |
--proxied | Proxy through Cloudflare |
Examples
# A record
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 93.184.216.34 -i=false
# CNAME record
npx zeabur@latest domain dns create --domain example.com --type CNAME --name www --content example.com -i=false
# MX record
npx zeabur@latest domain dns create --domain example.com --type MX --name @ --content mail.example.com --priority 10 -i=false
# TXT record (SPF)
npx zeabur@latest domain dns create --domain example.com --type TXT --name @ --content "v=spf1 include:_spf.google.com ~all" -i=falseUpdate a DNS Record
Identify the record by --type and --name (no need to look up record IDs):
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=falseOptional: --ttl, --priority, --proxied
If multiple records match the same type+name, use --record-id to specify.
Delete a DNS Record
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=falseVerify DNS Propagation
After creating/updating records, verify with dig:
dig @<nameserver> <name>.<domain> <type> +shortImportant Notes
- This manages DNS for Zeabur-registered domains only. For domains registered elsewhere, configure DNS at your registrar.
- To bind a domain to a Zeabur service, use the
zeabur-domain-urlskill instead. --domainaccepts the domain name (e.g.example.com). Use--domain-idonly for advanced scripting.