DNS config for subdomains of externally hosted website

  • Posted January 27, 2015


my website is not hosted on Digital Ocean. I want to host a subdomain of this website on Digital Ocean.

I did the following:

  1. all 3 Digital Ocean NS are registered with my domain
  2. Set the domain in Digital Ocean Control Panel
  3. in Domain view: A @ IP_ADDRESS of hosting server A MY_SUBDOMAIN IP_ADDRESS of droplet CNAME WWW WEBSITE_URL CNAME *.MY_SUBDOMAIN MY_SUBDOMAIN.WEBSITE_URL 3 Nameservers (Defaults)

What is the problem?



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.

This comment has been deleted

This comment has been deleted

If you changed your NS records like that all your domain is being send to DO NS servers, so maybe you current website is offline by now.

If you need to use a subdomain to direct your traffic to DO Droplet just add an A record to the DO Droplet Public IP.


Example: A www2

You do this from your current register DNS Panel.