So I had a Digital Ocean droplet running and hosting my Jekyll site on an IP address that I could get to by typing in the IP address into the browser. I already had a domain name for an old site I was hosting on a friend’s web server. So I need to get my domain name to point to the IP address of my Digital Ocean droplet and not the IP address of the old site. Below is how I did it.
##Step One - Change Your Domain Server Log into the control panel of your domain registrar. Meaning wherever you bought your domain, log into that control panel, be it a web server or an actual domain registrar, like NameCheap or Enom.
If you don’t remember where you created your name, you can look it up by typing in the command prompt the command below:
My control panel looked like this:
So change the domain servers to match the DigitalOcean domain servers:
To verfiy, hit up whois again and it should display the following:
##Step Two—Configure the Domain
Log into the Digital Ocean control panel and go to DNS. Add a domain like below:
Don’t add a www subdomain to the beginning. Just the domain name.
On the next page you will add the subdomains. Below is what mine looks like. I have rdanielmurphy.com, test.rdanielmurphy.com, and www.rdanielmurphy.com. In that order.
That’s it. It will take some time for the information to propogate. Wait a couple hours at least to check. You can test by typing the following command into a command prompt (assuming you created a test subdomain):