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?

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.

×
1 answer

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

  • I’ve created the CNAME and pointed it to the appropriate url from netlify. I’ll update this post in 24 hours if it worked. Thanks for your help!

    • Hello, @awshoot

      DNS changes might take up to 72 hours or even more due to ISP cache and normal DNS propagation. However this usually happens a lot faster.

      When it comes to DNS propagation there is not much you can do except of setting a lower TTL for the DNS records (A records) in order to speed up the process a bit. As mentioned usually the DNS changes take longer time due to DNS cache from all the IPSs.

      Regards,
      Alex

Submit an Answer