关于 zeabur-domain-dns
zeabur-domain-dns 是使用 Zeabur CLI 管理 Zeabur 注册域名 DNS 记录的技能,可列出、创建、更新和删除多种类型的记录,并设置 TTL、优先级和代理选项。
主要功能
- 01列出 DNS 记录
- 02创建、更新和删除记录
- 03支持 A、AAAA、CNAME、MX、TXT、SRV、CAA 和 NS
- 04设置 TTL、优先级和代理选项
- 05使用 dig 检查 DNS 传播
适用场景
- 01查看 Zeabur 注册域名的记录
- 02修改域名的 A 或 CNAME 记录
- 03使用 MX 记录配置邮件路由
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ zeabur/ agent-skills --skill zeabur-domain-dns安装后在 Claude Code 中输入/zeabur-domain-dns确认已加载。
详细介绍
Zeabur 域名 DNS 管理
始终使用
npx zeabur@latest调用 Zeabur CLI。 切勿直接使用zeabur或采用其他安装方式。如果无法使用npx,请先安装 Node.js。
列出 DNS 记录
npx zeabur@latest domain dns list --domain example.com -i=false
创建 DNS 记录
npx zeabur@latest domain dns create --domain example.com --type A --name @ --content 1.2.3.4 -i=false
支持的记录类型
A、AAAA、CNAME、MX、TXT、SRV、CAA、NS
可选标志
| 标志 | 描述 |
|---|---|
--ttl | TTL,以秒为单位(默认值 1 = 自动) |
--priority | MX/SRV 记录的优先级 |
--proxied | 通过 Cloudflare 代理 |
示例
# 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=false
更新 DNS 记录
使用 --type 和 --name 指定记录(无需查询记录 ID):
npx zeabur@latest domain dns update --domain example.com --type A --name @ --content 5.6.7.8 -i=false
可选参数:--ttl、--priority、--proxied
如果有多条记录的类型和名称相同,请使用 --record-id 指定记录。
删除 DNS 记录
npx zeabur@latest domain dns delete --domain example.com --type A --name test -y -i=false
验证 DNS 传播
创建或更新记录后,使用 dig 验证:
dig @<nameserver> <name>.<domain> <type> +short
重要说明
- 此工具仅管理在 Zeabur 注册的域名的 DNS。对于在其他地方注册的域名,请在域名注册商处配置 DNS。
- 如需将域名绑定到 Zeabur 服务,请改用
zeabur-domain-url技能。 --domain接受域名(例如example.com)。仅在高级脚本编写场景中使用--domain-id。
评论
支持 Markdown