How can I point a subdomain to a different host?

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

Hi, 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,

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!