I’ve scoured through the questions and answers to this and still haven’t been able to fix the issue. I’ve also applied the answers stated here -https://www.digitalocean.com/community/questions/www-domain-com-not-working and here
I have set up two CNAME configurations:
CNAME *domain.com is an alias of domain.com. TTL 600
CNAME www.domain.com is an alias of domain.com. TTL 600
TTL was initially 1800 but that didn’t make a difference.
All of this is inline with the answer given here (https://www.digitalocean.com/community/questions/www-domain-com-not-working) and still when I add www to the domain, the website doesn’t load.
I don’t know what else to do anymore :(
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!
Hi @gabrielClam,
Firstly, make sure you are making the DNS changes at the proper place. If you are using DigitalOcean, then make sure you are using the following Nameservers:
You can read more about this here :
Now, when you are sure your DNS is being managed from DigitalOcean you can start editing it from your control panel. Firstly, make sure your root Domain name, let’s say it’s example.com have an A record like so :
A example.com directs to XXX.XXX.XXX.XXX 300
Never ever ever configure your root domain name as a CNAME your whole DNS zone will stop working.
Now that you have made sure your root domain is configured properly,try to ping it in your terminal:
ping example.com
If it works, that’s great you can now turn your attention to your WWW record. You have two options here. The first one would be to make www.example.com use an A record, the second would be to use CNAME record. As you already know how to make it work as an A record, I’ll show you how to do it as a CNAME record:
CNAME www.example.com is an alias of example.com 300
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.