Trouble Setting Up A Subdomain In Ubuntu 18 with apache server

February 28, 2019 426 views
Apache DNS

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?



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.


Have another answer? Share your knowledge.