zeabur-domain-dns

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Zeabur Domain DNS Management

Zeabur域名DNS管理

Always use
npx zeabur@latest
to invoke Zeabur CLI.
Never use
zeabur
directly or any other installation method. If
npx
is not available, install Node.js first.
请始终使用
npx zeabur@latest
来调用Zeabur CLI。
切勿直接使用
zeabur
或其他安装方式。如果
npx
不可用,请先安装Node.js。

List DNS Records

列出DNS记录

bash
npx zeabur@latest domain dns list --domain example.com -i=false
bash
npx zeabur@latest domain dns list --domain example.com -i=false

Create a DNS Record

创建DNS记录

bash
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 1.2.3.4 -i=false
bash
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 1.2.3.4 -i=false

Supported Record Types

支持的记录类型

A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
A, AAAA, CNAME, MX, TXT, SRV, CAA, NS

Optional Flags

可选参数

FlagDescription
--ttl
TTL in seconds (default 1 = auto)
--priority
Priority for MX/SRV records
--proxied
Proxy through Cloudflare
参数描述
--ttl
生存时间(秒,默认值1为自动)
--priority
MX/SRV记录的优先级
--proxied
通过Cloudflare代理

Examples

示例

bash
undefined
bash
undefined

A 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
undefined
npx zeabur@latest domain dns create --domain example.com --type TXT --name @ --content "v=spf1 include:_spf.google.com ~all" -i=false
undefined

Update a DNS Record

更新DNS记录

Identify the record by
--type
and
--name
(no need to look up record IDs):
bash
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=false
Optional:
--ttl
,
--priority
,
--proxied
If multiple records match the same type+name, use
--record-id
to specify.
通过
--type
--name
识别记录(无需查询记录ID):
bash
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=false
可选参数:
--ttl
,
--priority
,
--proxied
如果多条记录匹配相同的类型+名称,请使用
--record-id
指定。

Delete a DNS Record

删除DNS记录

bash
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=false
bash
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=false

Verify DNS Propagation

验证DNS传播

After creating/updating records, verify with
dig
:
bash
dig @<nameserver> <name>.<domain> <type> +short
创建/更新记录后,使用
dig
验证:
bash
dig @<nameserver> <name>.<domain> <type> +short

Important 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-url
    skill instead.
  • --domain
    accepts the domain name (e.g.
    example.com
    ). Use
    --domain-id
    only for advanced scripting.
  • 此工具仅适用于Zeabur注册的域名的DNS管理。对于其他服务商注册的域名,请在对应服务商处配置DNS。
  • 如需将域名绑定到Zeabur服务,请使用
    zeabur-domain-url
    工具。
  • --domain
    接受域名(例如
    example.com
    )。仅在高级脚本中使用
    --domain-id