Syntax
vercel dns [subcommand] [options]Subcommands
Available subcommands for this command
lsList all DNS records
addAdd 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]"'rmRemove DNS record
vercel dns rm [record-id]importImport 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.1vercel dns add example.com @ MX mail.example.com 10vercel dns rm rec_abc123Use Cases
When to use this command
- •Configure DNS records
- •Set up email (MX records)
- •Manage subdomains
- •Bulk import DNS configurations