Configure external DNS for a custom domain

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

In the Custom domains panel, select Check DNS configuration next to the custom domain to open customized details about the DNS records you need to configure. The instructions will vary depending on the type of domain or subdomain.

Special handling for apex and www

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 apex domains and www subdomains.

Configure a subdomain

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.

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

  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.com.
  4. Save your settings. It may take a full day for the settings to propagate across the global Domain Name System.

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 special handling for www subdomains. 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. The standard alternative, an A record, points to a single server IP address, which means it can't take advantage of direct DNS routing on a global CDN like Netlify's.

Some DNS providers, such as Netlify DNS or NS1, have devised special record types to simulate CNAME-style domain resolution for apex domains. Find out if your provider supports this type of behavior, which might be labeled as CNAME flattening, ANAME records, or ALIAS records.

If your DNS provider supports one of these special record types (recommended), find and follow their instructions to point the apex domain directly to your Netlify subdomain, such as brave-curie-671954.netlify.com.

If your DNS provider does not support CNAME-style resolution for apex domains, you must configure your domain with a single-server A record:

  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: 104.198.14.52.
  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

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

DNS record propagation

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

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 DNS troubleshooting tips.