I cant visit by domain, only via

Posted February 13, 2019 552 views
DNSUbuntu 18.04

I set name servers, A and CNAME record.I disabled default conf file and enabled In conf file I have:

DocumentRoot “/var/www/html/”

I cant visit site via domain, only by its ip adress. Where is the problem?!

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
1 answer

I think a little more information is needed. Did you just create a dns record here or did you set the dns Information where you purchased the domain. For example, if you bought the domain at the dns records there need to point to your digital ocean droplet either by changing the nameservers so you have full access to the dns records here or by pointing the a record to your droplets IP. Also the ttl on those records makes a difference because a dns change takes time to propogate. If you set the ttl to 60 seconds theoretically your dns can update quickly but it also depends on ISPs and such. It looks like it’s resolving for me now are you still having the issue. If so try loading in incognito mode if that works clear your cache.