My root domain is not resolving to my server, but the www. subdomain works fine

by Fernando Urban   Last Updated October 18, 2019 20:04 PM

I have the DNS configured like this:

enter image description here

So, my domain is working as With www there is no problem, but with non-www like it's not working.

As you can see, my DNS records are pointing in record to the NS Actually, is pointing to my server's IP.

What could be the problem which is causing not to work while does work?

Tags : dns cname no-www

Answers 1

To resolve your host name to an IP address you need either an A or CNAME record for it. You don't have either for your bare domain. You only have NS and SOA records.

You have both A and CNAME records for www. That isn't usual and it could cause problems. I don't see any records for the ns. subdomain the CNAME is pointing to, so I doubt it is actually functional.

I would recommend:

  • Add an A record for pointing to your server's IP address
  • Remove the CNAME record for www.

To get your web site working, you may additionally need to configure your web server to show your site for your bare domain. It isn't always enough just to point a host name at your web server. You also usually have to add virtual host configuration for it as well.

Stephen Ostermiller
Stephen Ostermiller
October 18, 2019 19:44 PM

Related Questions

Updated November 26, 2016 07:14 AM

Updated August 22, 2015 17:01 PM

Updated February 25, 2016 05:01 AM

Updated April 14, 2016 08:01 AM