How do I add the two DNS records necessary to Enable HTTPS. I know i have to add both www and hostname but EXACTLY how do I do that. Thx!

March 5, 2019 234 views
DNS Ubuntu 18.04

The message i get: SERVFAIL looking up A for 'MYDOMAIN'

1 Answer

Is your domain using DigitalOcean Nameservers? If not set the Nameservers to use DigitalOcean's NS on your Domain Registrar.

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

Once done, add the domain to your DigitalOcean account and Under A records TAB add A record for main domain.
HOSTNAME: @
WILL DIRECT TO: Select the Droplet IP or Insert IP manually.

Move to CNAME tab and add:
HOSTNAME: www
IS AN ALIAS OF: @

Once done, wait for DNS propagation to complete and retry installing SSL on the Droplet to which you have added the A record. Let me know if you have any further questions.

Have another answer? Share your knowledge.