Skill站外收录 @skilllib/skill-2014279382632706051
vercel-dns
提供对 Vercel 托管域名的 DNS 记录全生命周期管理能力,支持查询、添加、删除各类记录(如 A、CNAME、TXT、MX),并可在多团队间灵活切换操作上下文,适用于域名解析配置与邮件验证等基础设施运维场景。
效率工具 AI 技能
Skills.MD
## What I Do
Manage DNS records for domains hosted on Vercel, including:
- List existing DNS records
- Add new DNS records (A, AAAA, CNAME, TXT, MX, etc.)
- Remove DNS records
- Switch between Vercel teams/accounts
## Prerequisites
- Vercel CLI installed: `npm i -g vercel` or `brew install vercel-cli`
- Logged in: `vercel login`
- Domain must be on Vercel nameservers or have Vercel as DNS provider
## 0 Finance Project
For the 0 Finance project, always use `--scope prologe`:
```bash
vercel dns ls 0.finance --scope prologe
vercel logs www.0.finance --scope prologe
```
## Common Commands
### Check Login & Team
```bash
# Check who you're logged in as
vercel whoami
# List available teams
vercel teams ls
# Switch to a specific team (use slug, not display name)
vercel switch <team-slug>
# Or use --scope flag instead of switching
vercel domains ls --scope prologe
```
### List Domains & Records
```bash
# List all domains in current team/account
vercel domains ls --scope prologe
# List DNS records for a specific domain
vercel dns ls <domain> --scope prologe
```
### Add DNS Records
```bash
# Add A record
vercel dns add <domain> <subdomain> A <ip-address>
# Add CNAME record
vercel dns add <domain> <subdomain> CNAME <target>
# Add TXT record (use quotes for values with special chars)
vercel dns add <domain> <subdomain> TXT '<value>'
# Add MX record with priority
vercel dns add <domain> <subdomain> MX '<priority> <mail-server>'
# Add record at apex (root domain) - use empty string or @
vercel dns add <domain> '' TXT '<value>'
vercel dns add <domain> @ MX '10 mail.example.com'
```
### Remove DNS Records
```bash
# First list to get record ID
vercel dns ls <domain>
# Remove by record ID
vercel dns rm <record-id>
# Remove with confirmation skip
vercel dns rm <record-id> --yes
```
## Examples
### Add Email DNS Records (MX + SPF)
```bash
# Add MX record for receiving email
vercel dns add example.com '' MX '10 inbound-smtp.us-east-1.amazonaws.com'
# Add SPF record
vercel dns add example.com '' TXT 'v=spf1 include:amazonses.com ~all'
```
### Add DKIM Records for Email Authentication
```bash
# DKIM CNAME records (common for SES, Google Workspace, etc.)
vercel dns add example.com selector._domainkey CNAME selector.dkim.provider.com
```
### Add Domain Verification TXT Record
```bash
# Google/AWS/other service verification
vercel dns add example.com _amazonses TXT 'verification-token-here'
vercel dns add example.com '' TXT 'google-site-verification=token'
```
### Subdomain Setup
```bash
# Point subdomain to a service
vercel dns add example.com api CNAME api.service.com
vercel dns add example.com app A 192.0.2.1
```
## Troubleshooting
### "You don't have permission to list the domain record"
The domain is in a different team. List teams and switch:
```bash
vercel teams ls
vercel switch <correct-team-slug>
```
### Domain Not Listed
- Domain might be in a different team/account
- Domain might not have Vercel as nameservers
- Check with `vercel domains ls`
### Record Not Propagating
- DNS propagation can take up to 48 hours (usually 5-30 minutes)
- Check propagation: `dig <record-name> <record-type>` or use dnschecker.org
- Verify record was added: `vercel dns ls <domain>`
## Tips
1. Always check which team you're in before making changes
2. Use single quotes around TXT values to preserve special characters
3. For apex/root domain records, use empty string `''` as subdomain
4. Record IDs are shown in `vercel dns ls` output - needed for removal
5. Some records (like those added by Vercel automatically) cannot be removed
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「vercel-dns」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次