Hi folks, just a quick question.
I have added my domain via Networking panel in www.domain.com format. Now when i try to access the non www version (aka domain.com) i get an DNS error saying that DNS host address couldnt be found (of course, pinging it doesnt work).
How to sort this out? Is it via CNAME entries or directly via nginx?
Thanks!
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!
after save wait 1 or 2 hours , then try ping
You should add non-www version to Networking instead of www version.
Write down records for your current domain, delete it from Networking and add non-www version to Networking (e.g. example.com).
To make www version works, go to that domain and add CNAME record with Name www and Value @.
With this, both versions should work. You could have to wait some time for DNS propagation (update) to occur.
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.