Trouble Setting Up A Subdomain In Ubuntu 18 with apache server

Posted February 28, 2019 2k views
ApacheDNSUbuntu 18.04

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.

Can anybody help?



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.

Submit an Answer
2 answers

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:


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