Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Searched all over and tried playing with httpd.conf , nothing works. The domain name can be resolved with but without www its does not resolve.

Advice for A Records does not work. I have a domain from Registrar there panel is like and have options for nameservers.

I have pointed nameservers, but with mx toolbox, only looks up and fails for non www

What is the probable cause ? Here is snippet from httpd.conf

<VirtualHost *:80>
DocumentRoot /var/www/html/
RewriteEngine On
RewriteRule ^/(.*)$1 [L,R=301]
ErrorLog logs/
CustomLog logs/ common

Its centos dedicated server, with firewall and yes port 80 is opened for tcp and udp both.

Additionally any change in document root explictly for also dont work. As default doc root is /var/www/html/ but i do want it to resolve it to /var/www/html/ directory . Please help thanks EDIT Here is the link for my dns report [Link Removed]

It gives strange result saying it can fetch dns records but cant resolve domain.. i am laughing and tearing down my head at same time
Following the below answer here is the update:
1) I do have 3 Nameserver received from my web hosting company . Although i have unmanaged dedicated server, but nameservers are not ns1.mydomain .. they are like, and have been feeded At Registrar panel
2) created CNAME Record for Host:www , - didnt worked
3) I do have a dedicated IP Available which i should use for creating A record - Did not worked
4) After performing these actions , domain is still not resolving. Even with www also it failed, which was working earlier.

I'm running in a big trouble

UPDATE 3: Finally the solution by closetnoc worked. I used domain Registrars' Nameservers, with an Additional A Record and CNAME record to my Dedicated IP and domain name respectively.

Although the DNS propagation is very slow with my registrar ( a reseller of PDR ) , and i will plan to switch to dedicated DNS hosting service soon.


share|improve this question
Thanks for updating us on as to what worked, glad it's resolved. – dan Jul 30 '14 at 4:58
i m glad as well, and the detailed explanation added more value to the answer by @closetnoc – echoashu Jul 30 '14 at 8:05

2 Answers 2

up vote 2 down vote accepted

This may be kind of easy!



ServerAlias backwards, should be:



Also, verify your DNS settings, just in case. You should have:

  • A record for that is an IP address
  • Either a CNAME or A record where:
  • _The CNAME is an alias for
  • -or-
  • _The A record for is the same IP address as


Your SOA is:

Traditionally, there are 2 SOA DNS servers for fail-over so I am not sure why I only see one. This may not be an indication of a problem. Just a side note.

Your Name Servers are:


You have an A record for, but no CNAME for

It looks like is a DNS hosting company and not your registrar. Your registrar is reporting that your name servers for your domain name are:


If I am right, your registrar name servers need to be set to:


Not all DNS servers like CNAME(s), but most work just fine.

You will need to add a CNAME for that aliases to If this does not work, then remove the CNAME and create an A record for that points to the same IP address as Remember that it can take some time for a DNS entry to propagate out to the DNS servers that your client computer uses. I often avoid this by setting the network to use the name servers I have my sites hosted on. In this case, it would be 2 of the,,,

What is odd is that you say that works but does not. I do not doubt you of course, but it still leaves me confused. Somehow this does not make sense to me. But let's see if this solves your problem.

[Update:] For the benefit of others.

Any domain name is registered with a registrar. Every registrar is required to have a robust DNS infrastructure and one reason why I recommend that people use the registrars DNS servers. Another reason is the generally advanced control panel and support. Often this is free or very affordable.

Most scenarios are as follows. The domain name is registered and the DNS entries are hosted with the registrar. The website is either hosted with the registrar (GoDaddy comes to mind) or with another hosting company. Most hosting companies have within their control panel DNS options. This is not to be confused with the registrars DNS. Most server installs contain Bind (a DNS server) and some server applications require domain name resolution which is supplied by elements of the Bind install.

In this case, you have a registrar, a DNS host (it appears to be a service of the registrar under a different domain name), and a web host. Most of the time it is not this complicated. But I suspect that in this case, we are still using the model above.

You will need: - NS entries that are the registrars name servers. You will need at least 2 but the more the merrier. - An A record for that points to the IP address provided by your web host. - An CNAME for that points to (optionally an A record can work too.) - Any MX records for e-mail. A MX record points to a domain name. Some like to set-up a sub-domain, but if e-mail is handled by the same system as the web server, this is not necessary.

share|improve this answer
thanks @closetnoc , i modified httpd.conf and restarted httpd, no result :-( I have an ip address alloted on VM but is it required to add A name record on domain registrar? for every other site i only used nameserevers and that worked. And without other settings domain with www loads fine ! strange !! – echoashu Jul 28 '14 at 16:55
Yes. You need to host all of your DNS records on the SOA (statement of authority) DNS server which is typically your registrar though not always. Your registrar DNS can point to another DNS name servers which is fine, but this adds more work and confusion for those who do not know DNS well. I like to recommend using the registrars DNS most of the time. – closetnoc Jul 28 '14 at 17:01
hmm.. it is certainly the problem at registrar end then .. i have added a dns report link, which tells the same as u told (SOA thing) Sorry for novoice question - what should be my action ? – echoashu Jul 28 '14 at 17:06
Can you provide a domain name so that I can do a dig (DNS record look-up) against it? This should tell me specifically what is missing. – closetnoc Jul 28 '14 at 17:16
@echoashu Sorry it took me so long. I typed an answer then my computer went wonky. I had to push the dirty rotten button and wait. Then I got to research the whole thing again and re-type the answer. – closetnoc Jul 28 '14 at 18:41

After looking at your domain and doing a DNS test of my own it appears that non of your nameservers have host files to serve your domain name. All of your nameservers are visible but non of them reply back when attempting to query your domain name.

If your without the www (or with anything for that matter) is resolving for you i believe this must be because your computer or ISP is cashing old records as at the time of this reply i can not get your domain to resolve to anything.

The DNS report you have provided is telling you that your nameservers are replying and online but they do not have to records for the domain in question.

share|improve this answer
Analog true, my system was cashing the records and now nothing seems to resolve . Now should i be questioning hosting provider or domain registrar ? I also found that my domain registrar is reseller of – echoashu Jul 29 '14 at 6:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.