Loading...
Loading...
Manage DNS records for domains hosted on Vercel using the Vercel CLI
npx skill4agent add different-ai/agent-bank vercel-dnsnpm i -g vercelbrew install vercel-clivercel login--scope prologevercel dns ls 0.finance --scope prologe
vercel logs www.0.finance --scope prologe# 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 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 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
# NOTE: MX priority is a separate argument (not embedded in the value)
vercel dns add <domain> <subdomain> MX <mail-server> <priority>
# Add record at apex (root domain) - use empty string or @
vercel dns add <domain> '' TXT '<value>'
vercel dns add <domain> @ MX mail.example.com 10# 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# Add MX record for receiving email
# WARNING: Setting MX at the apex (root) will route *all* inbound mail for the domain.
# If the domain already uses Google Workspace / Fastmail / etc, prefer a dedicated subdomain.
vercel dns add example.com '' MX inbound-smtp.us-east-1.amazonaws.com 10
# Safer: use a subdomain for inbound routing
vercel dns add example.com inbound MX inbound-smtp.us-east-1.amazonaws.com 10
# Add SPF record
vercel dns add example.com '' TXT 'v=spf1 include:amazonses.com ~all'# DKIM CNAME records (common for SES, Google Workspace, etc.)
vercel dns add example.com selector._domainkey CNAME selector.dkim.provider.com# 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'# 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.1vercel teams ls
vercel switch <correct-team-slug>vercel domains lsdig +short <record-name> <record-type>vercel dns ls <domain>digdig +short TXT resend._domainkey.example.com
dig +short TXT send.example.com
dig +short MX send.example.com
dig +short TXT example.com''vercel dns ls