Hey guys, I hope I can get some help with proper DNS setup.
My Wordpress site (Ubuntu LAMP on 18.04) hosted on a DigitalOcean droplet, and MIAB box on a separate droplet. My domain name is with Name.com
My site works when I visit it with www. (connection not secure), but without www. it brings you to “https:// box.MyWPwebsite .com” (connection secure). I’m afraid people will visit without typing the www and get routed to the “this is a mail-in-a-box” page instead.
Can you tell me if this is setup correctly? In my MIAB’s section of Custom DNS,
I have “A records”:
www. MyWPwebsite .com,
… pointing to my DO WP IP.
More “A records”:
… pointing to my DO box IP.
… pointing to box.MyWPwebsite .com
Should I also have a CNAME in there and how do I set it up? Anything else missing?
** Let’s Encrypt **
I also need to secure my site, I tried in MIAB with Let’s Encrypt but no luck. In the “TLS (SSL) Certificates” section of MIAB, for my WP site (with WWW and without WWW) it says:
“The domain’s website is hosted elsewhere.”
- All others certificates (ie. autodiscover.box.MyWPwebsite .com, box.MyWPwebsite .com, etc.) say “The domain name does not resolve to this machine”
- How can I get the certificate free from MIAB?
When trying to add a free Let’s Encrypt certificate in Digital Ocean it says:
“Failed to validate nameserver records: a non DigitalOcean Name Server was found for ***** domain.”
The Nameservers on Name.com are going to nameservers 1 & 2 (ns1.box.MyWPwebsite .com) for my site or to nameservers 1, 2 & 3 for Digital Ocean (ns1.digitalocean)
What am I doing wrong? Thanks!