Setup Your Domain On Digital Ocean

Now that you've setup your DNS to point to Digital Ocean, you need to back to your DigitalOcean control panel.

Click on the DNS section and click "Add Domain" (mine is already listed below) and a little dropdown menu will pop up.


Give it a name, input the IP address that Digital Ocean sent you and select the same droplet (with the corresponding IP address. It will be the only one you have if this is your first droplet).

Note: To make sure that your site works with or without "www" before the domain name, this is where you'll also want to make sure that you do 2 more little things after you create the first domain.

Under the domain listing, click the magnifying glass to view the settings. All you'll have at first on this page is your name servers that you changed earlier.

Click on "Add Record" to add the 3 types of records we're going to need to make sure your site works with "www".

The first is an "A Record", so in the first field marked "Enter Hostname" put and @ symbol and then the IP address Digital Ocean emailed you.

Click "Create" to add it.

Next, you're going to click "Add Record: and select CNAME. Here in the first field marked "Enter Name" add "www" and in the "Hostname" add "@" symbol:

Click "Create" to add it.

Finally, we're going to create a wildcard record. Click on "Add Record" one last time and select CNAME again. In the first "Enter Name" field, add and asterisk * and again an "@" symbol under the "Hostname" field.

Click "Create" to add it.

The final product should look like the image below (I've hidden the IP address from the first "A Record" line - but you'll see yours there).

Now there's one last thing we need to do to hook up your domain to the ghost installation on Digital Ocean, but we'll do it in a bit, while we're adding a mail server since it's in the same place. We first need to lay a bit more ground work....