Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

for example, I can ping www.example.com, but cannot ping example.com. It reports:

"Ping request could not find host example.com. please check the name and try again" (in DOS mode)

How can I fix this?

share|improve this question

closed as off topic by MDMarra, HopelessN00b, Chopper3, joeqwerty, Dave M Mar 22 '13 at 21:21

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You should add real example here - hard to guess universal reason :-) /If i must try then I'll said that mysite.com really not exist (in DNS terms - not have A record)/. –  dsznajder Mar 22 '13 at 20:40
sorry, I'm afraid that the real name will be regarded as an advertisement. –  user1283182 Mar 22 '13 at 21:00
Is this a problem? Is being able to ping your domain name a requirement for some reason? –  David Schwartz Mar 22 '13 at 22:12

1 Answer 1

You probably don't have an A record for example.com in DNS. Simply create one with the same settings as www.example.com

share|improve this answer
thanks, jelmers. I have added A record to *.mysite.com, and I can open the pages in www.mysite.com. but when I open mysite.com in firefox, it reports server not found. –  user1283182 Mar 22 '13 at 20:45
The A record should be to mysite.com, not *.mysite.com. If you added that, the failure to fetch the domain name might be cached on your computer (and any intermediate DNS server used in the query). Do a ipconfig /flushdns and restart firefox to clear the caches on your computer before trying again. –  JelmerS Mar 22 '13 at 20:52
Can I say I have to add two A records for mysite.com and www.mysite.com seperately? –  user1283182 Mar 22 '13 at 20:55
Yes, you need two A records if you want both mysite.com and www.mysite.com to point to your website. –  JelmerS Mar 22 '13 at 20:56
Yes, you can say that. *.mysite.com and mysite.com are not the same so you need an A record for both. In other words, you need to create an A record for the naked domain (mysite.com). –  joeqwerty Mar 22 '13 at 20:58

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