By Ashok Varma
i had my domain purchased in namecheap and dns records there are pointed to DigitalOcean(DO).
Now i added a DNS for test.com(non www version ) in my DO panel.
I am using nginx server and also made changes in the file server_name test.com www.test.com;
Now Is it necessary to add other DNS for www.test.com(www version) in DO panel.
because when i go to link test.com it’s working fine but when i go to link www.test.com chrome giving me this error
The server at www.test.com can’t be found, because the DNS lookup failed. DNS is the network service that translates a website’s name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
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!
There should be no need to add NS records in your DigitalOcean DNS zone, you can just change your A record for your non-www version and add a CNAME record for your www version to point to your non-www version.
This comment has been deleted
This comment has been deleted
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.