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.

Why does www.example.com resolve to a different IP than example.com when testing with ping?

Is the fault of the server configuration (Apache)?

share|improve this question
1  
I'll note that ping is a terrible tool for troubleshooting DNS issues. You should use dig if you're on *nix or nslookup if you're on Windows. –  MDMarra Aug 25 '13 at 11:39
add comment

2 Answers 2

Most people that don't have much experience assume that www.example.com is automatically the same as example.com. The www subdomain is just that - a subdomain and will have it's own separate record in your DNS. It's common to CNAME www to example.com, but in your case, you've probably got an A record for example.com that points to your website and an A record for www that points somewhere else.

share|improve this answer
    
In complement, the two records mainly differ when you use the "web redirect" feature of your registrar –  Kdecherf Aug 25 '13 at 12:32
add comment

Check your DNS configuration it seems that you have different entrys.

share|improve this answer
add comment

Your Answer

 
discard

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.