Question

HTTPS for nginx on Ubuntu 18.04 with DNS records not hosted on DigitalOcean

I would like my droplet to serve HTTPS via Nginx, but I don’t want the DNS records hosted by DigitalOcean. The reason is that I have a complicated set of DNS records at my domain registrar, and I’m certain something will break if I try to move them. (Especially because my grip on the various record types is tenuous.)

The standard HTTPS-on-Ubuntu18.04 tutorial implies that DNS hosting on DigitalOcean is required, but doesn’t come out and say it.

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

So, my questions are:

(1) If I follow the simple tutorial, and keep the DNS records at the registrar, will my site serve HTTPS and will it successfully do the auto-renews?

(2) If the answer to (1) is no, is there another tutorial I can follow to set up HTTPS for Nginx on Ubuntu while keeping the DNS records at the registrar?

Thank you, John

Show comments

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.

Hi @benferilliniti,

Following the mentioned tutorial should be fine as long as you have both your root and www. domain pointed to your droplet. The tutorial doesn’t actually require fo your DNS to be hosted with DigitalOcean, it only needs for your domain to be pinging.

Having said that, you can follow the tutorial without any concerns:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Regards, KDSys