vercel dns
Learn how to manage your DNS records for your domains using the vercel dns CLI command.Table of Contents
The vercel dns
command is used to manage DNS record for domains, providing functionality to list, add, remove, and import records.
When adding DNS records, please wait up to 24 hours for new records to propagate.
terminal
vercel dns ls
terminal
vercel dns add [domain] [subdomain] [A || AAAA || ALIAS || CNAME || TXT] [value]
terminal
vercel dns add [domain] '@' MX [record-value] [priority]
terminal
vercel dns add [domain] [name] SRV [priority] [weight] [port] [target]
terminal
vercel dns add [domain] [name] CAA '[flags] [tag] "[value]"'
terminal
vercel dns rm [record-id]
terminal
vercel dns import [domain] [path-to-zonefile]
These are options that only apply to the vercel dns
command.
The --limit
option can be used to specify the maximum number of dns records returned when using ls
. The default value is 20
and the maximum is 100
.
terminal
vercel dns ls --limit 100
The following global options can be passed when using the vercel dns
command:
For more information on global options and their usage, refer to the options section.
Last updated on July 17, 2024
Was this helpful?