should i add two dns servers for non-www and www servers

January 10, 2015 3k views

i had my domain purchased in namecheap and dns records there are pointed to DigitalOcean(DO).

Now i added a DNS for www version ) in my DO panel.

I am using nginx server and also made changes in the file

Now Is it necessary to add other DNS for version) in DO panel.

because when i go to link it's working fine but when i go to link chrome giving me this error

The server at 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.

  • I think what you're going for in your DO DNS entries is an A record for your primary server (if single VPS, then the IP assigned to your droplet), and a CNAME record 'www' assigned to '@'. Look at the Getting Started section of the DO knowledgebase.

    by Etel Sverdlov
    This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
  • @gndo
    Thanks it worked, actually i skipped that part. Now very thing works like charm