Command Palette

Search for a command to run...

vercel_dns

Manage DNS records for domains (propagation may take up to 24 hours)

Syntax
vercel dns [subcommand] [options]
Subcommands
Available subcommands for this command
ls

List all DNS records

add

Add DNS records

A/AAAA/ALIAS/CNAME/TXT:

vercel dns add [domain] [subdomain] [type] [value]

MX:

vercel dns add [domain] '@' MX [mail-server] [priority]

SRV:

vercel dns add [domain] [name] SRV [priority] [weight] [port] [target]

CAA:

vercel dns add [domain] [name] CAA '[flags] [tag] "[value]"'
rm

Remove DNS record

vercel dns rm [record-id]
import

Import DNS records from zone file

vercel dns import [domain] [path-to-zonefile]
Examples
Common usage examples
vercel dns add example.com www A 192.0.2.1
vercel dns add example.com @ MX mail.example.com 10
vercel dns rm rec_abc123
Use Cases
When to use this command
  • Configure DNS records
  • Set up email (MX records)
  • Manage subdomains
  • Bulk import DNS configurations