I have bought a domain my-domain.com at Namecheap. My goal is to use subdomains of my-domain.com with Digital Ocean and my-domain.com with Netlify. Desired result:
At the moment, my setup with Namecheap is this:
And Digital Ocean:
All the DNS setup is very unclear to me, I appreciate any help!
Thank you.
First off, let's not use the term "redirect" since that is not happening here :) That's a specific HTTP convention that neither Namecheap nor Digital Ocean's DNS will be involved in, once you've configured things correctly. It is a service they might offer, but it is not one you should use in most cases (neither Digital Ocean nor Netlify benefit from that kind of configuration and it will make at least your Netlify site less reliable and harder to protect via Netlify's automated SSL certificates.)
I work for Netlify (and use Digital Ocean personally), and suggest this setup:
104.198.14.52
sitename.netlify.com
I have never worked with Netlify and Digital Ocean, but just in theory.
1) You are using Digital Ocean name servers, so you have to edit DNS records there.
2) Setup A/AAAA record for each subdomain:
Remove A/AAAA record with Wildcard (*.my-domain.com)
3) Setup your server to listen for it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With