DNS config for subdomains of externally hosted website


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

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.

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.