Trouble Setting Up A Subdomain In Ubuntu 18 with apache server

Hi all, I’m completely frustrated in trying to setup a subdomain on one my droplets. I’ve set up a new virtual host just for the sub domain and setup the A and CName records for the subdomain, but nothing works. I’ve tried the many tutorials and posts for sub domains even here at digital ocean, but I keep getting a

This site can’t be reached’s server IP address could not be found. DNS_PROBE_FINISHED_NXDOMAIN

Can anybody help?



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.

And you were right. I set up the A record for the sub domain at Godaddy.


Hey friend,

If you set up the DNS with us, it looks like you forgot to change the nameservers from GoDaddy to ours. Else, you would need to set up the subdomain record at GoDaddy as they currently manage the DNS:

[root@gateway] ~ # dig NS +short

For reference, these are our nameservers, which must be configured at your domain registrar: