[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# Domain CNAME/A DNS records in Vercel REST API and SDK

1225 views · 1 like · 3 posts


rychlis (@rychlis) · 2025-08-14

For some time now, when adding a domain using DNS records (for domains not managed by Vercel), the entries are now dynamic - like XYZ.vercel-dns-016.com

There is a note in Vercel UI that the “The old records of cname.vercel-dns.com and 76.76.21.21 will continue to work but we recommend you use the new ones.”.

However in our usecase we connect new domains using Vercel REST API and it seems like the API doesn’t expose these DNS entries in the created domain - https://vercel.com/docs/rest-api/reference/examples/domain-management - there is just a `verification` object with TXT records for domain verification, but not the CNAME / A entries. API docs here: https://vercel.com/docs/rest-api/reference/endpoints/projects/add-a-domain-to-a-project

Do you plan on adding the DNS entries to the project domain REST API and Vercel SDK? How long will the old records of cname.vercel-dns.com and 76.76.21.21 keep working?


rychlis (@rychlis) · 2025-08-15 · ♥ 1

Looks like this can be achieved with https://vercel.com/docs/rest-api/reference/endpoints/domains/get-a-domains-configuration - which returns recommendedCNAME values


Pauline P. Narvas (@pawlean) · 2025-08-15

Thanks for sharing what worked for you :)