My Docs
BlogGithubLinkedin
Blog-Notes
Blog-Notes
  • Page 1
  • Adding a Site Search to Your Stackbit Gatsby Site
  • Adding Search to Your Gatsby Site
  • Home
  • Netlify Injected Content
  • SEO.md
  • THINGS TO EMBED.md
  • Technologies Used.md
  • gatsby-remark-code-buttons
  • Adding a Mailing List to Your Gatsby Site
  • Broken links on your site
  • Configure external DNS for a custom domain
  • contentauthoring.md
  • full text search example
  • inject 4.md
  • inject3.md
  • inject4.md
  • Snippet injection
  • injected part3.md
  • links 2 embed.md
  • links to remember
  • privacy policy.md
  • medium
    • Page 2
      • Docs
    • Medium
    • 2021-02-27_Basic-Web-Development-Environment-Setup-9f36c3f15afe
Powered by GitBook
On this page
  • #Configure a subdomain
  • #Configure an apex domain
  • #DNS record propagation

Was this helpful?

Configure external DNS for a custom domain

PreviousBroken links on your siteNextcontentauthoring.md

Last updated 3 years ago

Was this helpful?

If you've assigned an externally registered domain to your site, and you don't want to use , you need to configure your external DNS provider to point your domain to Netlify.

To access customized details about the DNS records you need to configure, go to Site settings > Domain management > Custom domains and select Check DNS configuration next to the custom domain.

The link is between the domain name and the options menu.

The next steps vary depending on the type of domain or subdomain.

Special handling for apex and www

To point a subdomain such as blog.petsofnetlify.com or www.petsofnetlify.com to your site on Netlify, you must create a CNAME record with your DNS provider.

  1. Find your DNS provider's DNS record settings for your apex domain, petsofnetlify.com.

  2. Add a CNAME record with your subdomain, blog, as the host.

  3. Point the record to your Netlify subdomain, brave-curie-671954.netlify.app.

  4. Save your settings. It may take a full day for the settings to propagate across the global Domain Name System.

Cloudflare exception

If you use Cloudflare as your DNS provider, it supports a special record type that also works well on the bare domain - Flattened CNAME records. This record type is recommended for your bare domain. You'd set the same record value as for your subdomains, such as brave-curie-671954.netlify.app.

  1. Find your DNS provider's DNS record settings for your apex domain, such as petsofnetlify.com.

  2. Add an A record (or Flattened CNAME record for Cloudflare). 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.

Special handling for apex domains

Depending on your DNS provider, changes to DNS records can take several hours to propagate and take effect for the entire internet.

For a of a domain you own, such as blog.petsofnetlify.com or www.petsofnetlify.com, follow the directions below for .

For an with no subdomain, such as petsofnetlify.com, make sure to read our , then follow the directions below for .

If you assign an apex domain or a www subdomain to your site, Netlify will automatically add both the apex domain and the www subdomain. For more information, visit the section on .

Configure a subdomain

For example, if your site's domain is blog.petsofnetlify.com and your is brave-curie-671954.netlify.app:

If your site uses the www subdomain, as in www.petsofnetlify.com, you will use the same procedure described above. However, you should also read about our . This handling includes automatically adding the apex domain to your site, which requires an apex domain configuration as described below.

Configure an apex domain

Unlike subdomains, apex domains don't support CNAME records. You must configure your domain with a single-server A record. The A record points to a single server IP address, which means it can't take advantage of direct DNS routing on a .

If you assign an apex domain to your site, Netlify will automatically add a www subdomain for the domain as well. To find out how this affects your site configuration, visit the section on .

DNS record propagation

If more than 24 hours have passed since you configured your DNS records, and your site is still not accessible at your custom domain, try our .

subdomain
subdomain configuration
apex domain
advice about using apex domains
apex domain configuration
apex domains and www subdomains
#
Netlify subdomain
special handling for www subdomains
#
global CDN like Netlify's
apex domains and www subdomains
#
DNS troubleshooting tips
Netlify DNS