Question

Direct subdomain to a netlify site?

Hello!

Is it possible to point a subdomain of a site hosted on a Digital Ocean Droplet to a Netlify site? I have my sites DNS hosted here on Digital Ocean. Netlify uses a modern CDN so I can’t point an A record at an IP as their is no dedicated IP to point at.

Here is what I would like to accomplish;

example.com -> hosted on a digital ocean VPS blog.example.com -> hosted on a Netlify deployment (build from Git)

Is this possible with basic DNS?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @awshoot

From the looks of it this is possible. You can check out Netify’s official documentation in order to set this:

https://docs.netlify.com/domains-https/custom-domains/configure-external-dns/

https://docs.netlify.com/domains-https/custom-domains/configure-external-dns/#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.app:

  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.

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.

Hope that helps!

Regards, Alex