Point a Subdomain of the main domain to a secondary droplet

  • Posted July 21, 2014

Hi there,

I have to droplets: ( (

and I have a domain “” which is managed by digital ocean’s DNS to resolve the domain name to the main drolet its working fine.

BUT, I don’ know how to configure the DNS to point the subdomain “” to the droplet “” with IP:

I created an A record “ ->” and a CNAME record “prep ->” but no results.

the server nevertheless is reachable by IP directly in the browser, so the web server is responding.

it’s a DNS issue or I am missing some configuration in my droplet (maybe BIND?) ?

Thanks a lot for your help, Vicens.


Submit an 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.

All you need in this case is the A record pointing from prep to the IP address:

prep IN A

Check out this article for more info:

How To Set Up and Test DNS Subdomains with DigitalOcean’s DNS Panel