Digital Ocean Droplet to point to subdomain

November 29, 2017 270 views
DNS Ubuntu

Can you please help me with DNS set so that my domain directs to my droplet? I know how to do this for a domain, like pointing to droplet XXXX. However, I do not know how to do this from

Pleade help bearing in mind that I am a total noob on these things :)


1 Answer

A subdomain is something like this:

A sub-folder is what you are describing:

Subdomains are routed based on DNS, you can create one and point it to any IP address. A sub-folder is a folder on the server that DNS has pointed to. You cannot use DNS to point a sub-folder to another server. If this configuration is absolutely vital and a subdomain will not do then one way to achieve this would be to create a droplet running Nginx and then create a reverse_proxy configuration for the folder name so that nginx loads content from another server or site.

If you can work with a subdomain it is just a matter of creating an A record with your DNS provider with the name you want and pointing to your IP address.

Have another answer? Share your knowledge.