Domain www and non-www problem

Hi folks, just a quick question.

I have added my domain via Networking panel in format. Now when i try to access the non www version (aka 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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

  1. check NS Record -> is there dns server record ?
  2. input in A record -> 2.a ----> xxx.yyy.zzz.ip 2.b www ----> xxx.yyy.zzz.ip

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.

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.