一键导入
dn-dns-set
Set a DNS record for a domain using the dn CLI. Use when the user wants to add or update DNS records (A, AAAA, CNAME, MX, TXT, etc.). Partner mode only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set a DNS record for a domain using the dn CLI. Use when the user wants to add or update DNS records (A, AAAA, CNAME, MX, TXT, etc.). Partner mode only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify that the dn CLI is installed and configured. Use when the user first installs the domain-names plugin, or when a dn command fails because the CLI is missing or not set up.
View the WordPress.com shopping cart using the dn CLI. Use when the user wants to see what domains are in their cart before checkout. User mode only - not available in partner mode.
Check domain name availability and pricing using the dn CLI. Use when the user wants to know if a domain is available, see domain pricing, or verify multiple domains at once. Supports both partner mode (Domain Services API) and user mode (WordPress.com API).
Open WordPress.com checkout in the browser using the dn CLI. Use when the user wants to complete a domain purchase after adding domains to cart. User mode only.
Set up credentials for the dn CLI tool. Use when the user needs to authenticate, switch between partner and user mode, set up API keys, or connect their WordPress.com account via OAuth. Also use when the user mentions "dn configure" or needs to reconfigure their dn CLI setup.
Update domain contact information (WHOIS contacts) using the dn CLI. Use when the user wants to change owner, admin, tech, or billing contacts for a domain. Partner mode only.
| name | dn-dns-set |
| description | Set a DNS record for a domain using the dn CLI. Use when the user wants to add or update DNS records (A, AAAA, CNAME, MX, TXT, etc.). Partner mode only. |
Set a DNS record for a domain.
# Interactive (prompts for type, name, value)
dn dns:set example.com
# Non-interactive
dn dns:set example.com --type=A --name=@ --value=192.0.2.1
# Custom TTL
dn dns:set example.com --type=CNAME --name=www --value=example.com --ttl=7200
# Multiple values (e.g., round-robin A records)
dn dns:set example.com --type=A --name=@ --value=192.0.2.1 --value=192.0.2.2
| Option | Description |
|---|---|
--type | Record type: A, AAAA, CNAME, MX, TXT, etc. |
--name | Record name (@ for root, or subdomain) |
--value | Record value(s) - repeatable for multiple values |
--ttl | TTL in seconds (default: 3600) |
wordpress.com/domains/managedns:setdn dns:get first to see existing records