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 test.beautylounge3000.com’s server IP address could not be found.
DNSPROBEFINISHED_NXDOMAIN

Can anybody help?

Thanks,

Dane

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 beautylounge3000.com +short
ns14.domaincontrol.com.
ns13.domaincontrol.com.

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

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

Jarland

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

Thanks.

Have another answer? Share your knowledge.