zeabur-domain-dns
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZeabur Domain DNS Management
Zeabur域名DNS管理
Always useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
请始终使用来调用Zeabur CLI。 切勿直接使用npx zeabur@latest或其他安装方式。如果zeabur不可用,请先安装Node.js。npx
List DNS Records
列出DNS记录
bash
npx zeabur@latest domain dns list --domain example.com -i=falsebash
npx zeabur@latest domain dns list --domain example.com -i=falseCreate a DNS Record
创建DNS记录
bash
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 1.2.3.4 -i=falsebash
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
A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
Optional Flags
可选参数
| Flag | Description |
|---|---|
| TTL in seconds (default 1 = auto) |
| Priority for MX/SRV records |
| Proxy through Cloudflare |
| 参数 | 描述 |
|---|---|
| 生存时间(秒,默认值1为自动) |
| MX/SRV记录的优先级 |
| 通过Cloudflare代理 |
Examples
示例
bash
undefinedbash
undefinedA record
A记录
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 93.184.216.34 -i=false
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 93.184.216.34 -i=false
CNAME record
CNAME记录
npx zeabur@latest domain dns create --domain example.com --type CNAME --name www --content example.com -i=false
npx zeabur@latest domain dns create --domain example.com --type CNAME --name www --content example.com -i=false
MX record
MX记录
npx zeabur@latest domain dns create --domain example.com --type MX --name @ --content mail.example.com --priority 10 -i=false
npx zeabur@latest domain dns create --domain example.com --type MX --name @ --content mail.example.com --priority 10 -i=false
TXT record (SPF)
TXT记录(SPF)
npx zeabur@latest domain dns create --domain example.com --type TXT --name @ --content "v=spf1 include:_spf.google.com ~all" -i=false
undefinednpx zeabur@latest domain dns create --domain example.com --type TXT --name @ --content "v=spf1 include:_spf.google.com ~all" -i=false
undefinedUpdate a DNS Record
更新DNS记录
Identify the record by and (no need to look up record IDs):
--type--namebash
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=falseOptional: , ,
--ttl--priority--proxiedIf multiple records match the same type+name, use to specify.
--record-id通过和识别记录(无需查询记录ID):
--type--namebash
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=false可选参数:, ,
--ttl--priority--proxied如果多条记录匹配相同的类型+名称,请使用指定。
--record-idDelete a DNS Record
删除DNS记录
bash
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=falsebash
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=falseVerify DNS Propagation
验证DNS传播
After creating/updating records, verify with :
digbash
dig @<nameserver> <name>.<domain> <type> +short创建/更新记录后,使用验证:
digbash
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 skill instead.
zeabur-domain-url - accepts the domain name (e.g.
--domain). Useexample.comonly for advanced scripting.--domain-id
- 此工具仅适用于Zeabur注册的域名的DNS管理。对于其他服务商注册的域名,请在对应服务商处配置DNS。
- 如需将域名绑定到Zeabur服务,请使用工具。
zeabur-domain-url - 接受域名(例如
--domain)。仅在高级脚本中使用example.com。--domain-id