Vercel CLI now supports verifying DNS configuration
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
You can now use the Vercel CLI to diagnose a domain's DNS configuration.
Using the vercel domains verify command, you can check whether a domain is correctly configured, attached to the right project, and verified. If not, it returns the exact steps to fix it.
▲ vercel domains verify example.com --project my-site> Checked example.com under my-team 1.23sStatus DNS Configuration ✘ Invalid Configuration Project ✔ Verified for my-siteWhat to fix 1. Point example.com to Vercel with one of the following options: a) Add an A record:vercel domains verify output showing an invalid DNS configuration.
vercel domains verify inspects ownership, DNS records, nameservers, DNSSEC, conflicting records, and project attachment, and tells you precisely what to change. When the domain is correctly configured, you get a single line back:
▲ vercel domains verify example.com --project my-site> Success! Valid Configuration: example.com is configured (A record) and verified for project my-site 0.41sOutput when the domain is correctly configured and verified.
With --format json, the command returns the full diagnosis: status, reason, recommended records, detected conflicts, and suggested next commands. It exits non-zero when misconfigured or unverified, making it scriptable for CI and automation:
▲ vercel domains verify example.com --format jsonFull JSON diagnosis including status, reason, recommended records, and suggested next commands.
You can also scope to a project, enforce exact matching, or run non-interactively:
vercel domains verify example.com --project my-sitevercel domains verify example.com --strictvercel domains verify example.com --format jsonvercel domains verify example.com --non-interactivevercel domains verify --helpCommon vercel domains verify flags.
Upgrade your Vercel CLI to version 54.15.1 to get started. Learn more in the vercel domains verify documentation.
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.