How can I point a subdomain to a different host?

Posted August 26, 2015 62.7k views

I have my main website hosted with Digital Ocean but I need to point a subdomain to a different host (smugmug). How do I do this? I am using with a Digital Ocean droplet.

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.

Submit an Answer
3 answers

If your domain is pointed to our nameservers you will just need to create an A record for your subdomain pointed to the IP address on the other host where your content is located. For example, if your subdomain was and the IP address of your other host was you would create the following record under

mysite   A

For smugmug you need to set up a CNAME record. This info is taken from SmugMug’s website.

  1. Point your CNAME ‘www’ to (You can use whichever sub-domain you’d like) Using a subdomain to point at SmugMug? There is no need to set up an A Record.

  2. Visit your SmugMug Account Settings > Me > Account tab for the “Custom Domain” line. Paste your new domain name into the box and click “Save Changes.” That’s it!

A moment ago a installed an app with Laravel Forge. It’s installed under the name, so, if I go to the installation path into ubuntu, i see a folder which has such a subdomain name. The subdomain was created with Webfaction. What would be the steps to point in Webfaction to the new app installation under Digital Ocean?
I know I should add a cname record in Webfaction for the domain, using the ip of the droplet in Digital Ocean, however i don’t know how to point exclusively to the folder of the app installation.

Thanks in advance for all the help,