Report this

What is the reason for this report?

How can I point a subdomain to a different host?

Posted on August 26, 2015

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 Serverpilot.io with a Digital Ocean droplet.



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!

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, A moment ago a installed an app with Laravel Forge. It’s installed under the name example.mydomain.com, so, if I go to the installation path into ubuntu, i see a folder which has such a subdomain name. The subdomain example.mydomain.com was created with Webfaction. What would be the steps to point example.mydomain.com 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,

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 mysite.example.org and the IP address of your other host was 1.2.3.4 you would create the following record under example.org.

mysite   A   1.2.3.4

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

  1. Point your CNAME ‘www’ to domains.smugmug.com. (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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.