Question

Setupd DNS for my WebServer

Hi there, my name is Damian. I’m a Linux enthusiast, and I’m just setting up a web server using a Digital Ocean Centos 7 Droplet. I’ve got a public IP that I can use to access my site through a web browser; however, I want to get a domain .CA and delegate the DNS, so the people can access my site using a friendly URL rather than my IP address. Can anybody guide me through the steps that I should follow?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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 @damiancotado,

I’ll be happy to provide you with a few pointers. First, what you are looking for is a Domain name. Unfortunately, DigitalOcean does not provide a way to purchase one directly. You’ll need to use a domain provider. If you type in domain provider in Google, you’ll be able to choose one.

As soon as you have purchased your domain, from your domain provider’s client area you’ll need to set the Nameservers of your domain to:

Name Server: NS1.DIGITALOCEAN.COM
Name Server: NS2.DIGITALOCEAN.COM

That way you’ll be able to manage your DNS from DigitalOcean. Now, it’s time to add the domain to your DigitalOcean account. There is a pretty good guide on how to do that. You can do it by going to this link:

https://www.digitalocean.com/docs/networking/dns/how-to/add-domains/

You’ll need to point your domain to your droplet’s IP address. The good thing is, DigitalOcean will actually suggest it for you so it’ll be almost semi-automatic.

Once you’ve pointed your domain to your Droplet, you’ll need to add it to your server’s configuration. Having said that, I’ll continue with the post in the second reply as this will become a pretty long one otherwise.