Table of Contents
Setting up your custom DNS records on Vercel is an essential step to connect your domain to your Vercel-hosted project. Proper configuration ensures your website is accessible via your custom domain name, such as www.yourdomain.com. This guide walks you through the process of setting up and using Vercel’s custom DNS records effectively.
Prerequisites
- A registered domain name with a domain registrar (e.g., GoDaddy, Namecheap)
- A Vercel account with your project deployed
- Access to your domain registrar’s DNS management panel
Step 1: Add Your Domain to Vercel
Log in to your Vercel dashboard. Navigate to your project and click on the Settings tab. Select Domains and then click Add. Enter your domain name (e.g., yourdomain.com) and click Add.
Step 2: Obtain DNS Records from Vercel
After adding your domain, Vercel will provide the DNS records you need to configure. These typically include:
- Type: CNAME or A
- Name: @ or www
- Value: Vercel’s target URL or IP address
Step 3: Configure DNS Records at Your Registrar
Login to your domain registrar’s DNS management panel. Locate the DNS records section. Add the DNS records provided by Vercel:
- If Vercel provides a CNAME record for www, add a CNAME pointing to cname.vercel-dns.com.
- If an A record is required for root domains (@), add the IP address provided by Vercel.
Step 4: Verify and Propagate
After saving your DNS records, return to Vercel and click Verify in the domain settings. DNS propagation can take anywhere from a few minutes to 48 hours. You can use tools like DNSChecker to monitor the status.
Step 5: Final Checks and SSL
Once DNS has propagated, Vercel will automatically issue an SSL certificate for your domain. Ensure your website loads securely via https://. Test your domain in different browsers and devices to confirm proper setup.
Conclusion
Configuring custom DNS records on Vercel is straightforward but requires patience during propagation. Proper setup ensures your website is accessible, secure, and professional. Follow these steps carefully, and you’ll have your custom domain connected to Vercel in no time!