[Support Guide] DNS Quick Start - How to set up DNS

Last reviewed: February 2022

Note: All options discussed in this guide assume you have already added your custom domain to your Netlify site.

Hi there! Need to get your site up and running with DNS? Start here with either Newly purchased domain or Existing domain that you’ve already used.

Newly purchased domain

If you have a brand new domain purchased from a registrar such as Namecheap or GoDaddy, and you want to quickly get your DNS set up, you have two options:

  1. External DNS - Create these two DNS records at your registrar:

    Type Name Value
    A @ 75.2.60.5
    CNAME www mysite.netlify.app

    The value for mysite is your site name on Netlify, for example, brave-curie-671954. If you renamed your netlify site, use that instead.

  2. Netlify DNS - Switch from using your registrar’s name servers to using Netlify’s. To do this, you’ll create a DNS Zone at Netlify. In the Netlify UI, navigate to your site and go to Domains —> Custom Domains. Click the Options button to the right of your custom name and select Set up Netlify DNS. There, scroll down to see your four nameservers. Write down the names and URLs of those name servers, then head over to your registrar and change the nameservers listed in your registrar’s dashboard to those you just copied from Netlify.

You’re done! Now we wait, as these changes won’t take effect immediately. Changes to DNS records can take up to 48 hours to propagate and take effect for the entire internet - worldwide! You can check your progress using this tool. See this Support Guide for more info on why it really can take this long: [Support Guide] Why do DNS / SSL changes take up to 48 hours to propagate? (TTL)

Feel like it should have been propagated already? If it hasn’t yet been 24-48 hours, please wait a little longer before creating a new post. We cannot speed up this process for you, sadly. Many DNS issues fix themselves with a little patience, and if it has not yet been 48 hours we will likely ask you to wait before we investigate.

Existing domain that you’ve already used

We recommend option 1 above, External DNS.

However, if you want to use Netlify DNS instead, you totally can. You’ll need to copy all existing DNS records to Netlify before changing the name server records to point to Netlify, especially if you have an email service configured for it like GSuite. Please read this Support Guide for more details about copying existing DNS records to Netlify: [Support Guide] How do I migrate a domain to Netlify Managed DNS with zero downtime?

One other scenario: Domain purchased through Netlify

If you purchased your new domain through Netlify it will already have Netlify DNS enabled! So you are all set. :tada:

In Conclusion

Not sure which to use? Check out this Support Guide: [Support Guide] Should I use Netlify to manage my DNS?

Additional resources and definitions

Note that we have compiled a listing of all of our DNS related content, so if you have more questions after reading the above, they are likely addressed in one of the posts linked in this article.

Links to some registrars’ DNS instructions

EXTERNAL DNS - ADDING RECORDS

GoDaddy A records

GoDaddy CNAME records

Namecheap A records

Namecheap CNAME records

NETLIFY DNS - CHANGING NAMESERVERS

GoDaddy

Namecheap

[Support Guide] Compiled resources for custom domains on Netlify and DNS settings -- start here!
Branch deploy SSL
My custom domain fails to point to netlify nameservers
Domain troubles
Error 403: Forbidden
Website build and deployed successfully but not available on the url
Update main domain to use Netlify but keep subdomain with current hosting provider
I have a Google Workspace email acct, I added my custom domain to Netlify do I need to add my Mx into Netlify too?
Domain won't work
Custom_domain is owned by another account (event it is not)
I want my subdomain automatically directs to SSL (https)
Domain routing to wrong site
Setting up open graph images for social media platforms
.ca Custom domain on netlify?
Linking subdomains to netlify pages
DNS configuration with external domain
Net::err_cert_invalid
Custom domain is not working but default site is working
I accidentily removed my DNS record of my Netlify Domain
Transfer of domain to netlify
Iphone won't connect to my site
Bizland ssl certificate error
Netlify records deleted
SEO Webcrawler getting blocked - how to resolve
Certificate expired, disable DNSSEC or not …
Its showing Failing build: Failed to parse configuration
Did I set up my DNS correctly?
Broken url cannot find the page
Custom Domain Connection Problem
Issue provision certificate custom domain
You have reached a limit for domain orders on first attempt to purchase
[Support Guide] How to set up Netlify DNS on a domain alias
Connect Netlify DNS without deploying?
Netlify DNS Issues with 3rd Party Domain, Duplicate A Records
DNS Certification Failure even after TTL update
Godaddy and nameservers
Unable to Correctly Connect/Configure Subdomain on My Domain
Cannot provision cert because domain "doesn't appear to be served by Netlify"
Page fetch failed / redirect error
How to get CNAME and IP type A
[Support Guide] How can I receive emails on my domain?

Hi,
We are trying to setp DNS records at gabia.com But they are accepting only A, MX, CNAME, TXT and SRV only, not NS records. So how can i get the A record.

I think CNAME is, enposs.netlify.app But when i set it as CNAME record, so it is expecting dot(.) at end which is not right.

Appreciate if you can help us quickly

HI, @venukommu. Actually, all fully qualified domain names always end in a trailing dot but … web browsers never show it. The dot is there though.

Web browsers distort reality in many ways (much to my frustration) and this is one of the ways they do so. For example, many browsers (*cough* Chrome *cough*) also hide the www and the https:// from URLs when they are actually really there.

For example, if I make a query for example.com the answer will be for example.com. with a trailing dot. Here is an example:

$ dig +noall +answer example.com
example.com.		1069	IN	A	93.184.216.34

To summarize, do enter the CNAME for enposs.netlify.app. (with the trailing dot) as this is definitely the correct thing to do with your DNS service.

I added “with your DNS service” because all DNS services have slightly different web UIs so this won’t be true for everyone. Trust me though, behind the scenes inside the DNS responses themselves, the trailing dot is really always there. The web UIs, however, may or may not show the trailing dot. It just depends on what each particular service does.

Dear Luke,
Thank you very much for explaining me in detail about trailing dot. Appreciate your patience. Anyway already we have added CNAME Yesterday, but i think only CNAME is not sufficient. We are looking for A record also, i think we need to setup A record with IP address. How can i get IP address for enposs.netlify.app

Appreciate your quick help.
Thank you very much
Venu Kommu

Hi, @venukommu. This information is found here:

Quoting:

  1. Find your DNS provider’s DNS record settings for your apex domain, such as petsofnetlify.com .
  2. Add an A record . Depending on your provider, leave the host field empty or enter @ .
  3. Point the record to Netlify’s load balancer IP address: 75.2.60.5
  4. Save your settings. It may take a full day for the settings to propagate across the global Domain Name System.

If there are other questions, please let us know.