Browser considering www domain and without www domain different

Posted by user1444680 on Server Fault See other posts from Server Fault or by user1444680
Published on 2013-06-29T16:49:57Z Indexed on 2013/06/30 10:22 UTC
Read the original article Hit count: 227

Filed under:
|

I've bought a domain name and hosted it. My browser is storing separate passwords for mydomain.com and www.mydomain.com, and also caching them separately. I want these two to be considered the same website.

The zone records of mydomain.com are:
"A" record: "@" points to the IP address of my hosting
CNAME: www points to "@"

As CNAME signifies alias, shouldn't browser understand (like search engines do) that the two URLs refer to the same website? Is it browser's fault?

Please tell how to correct the problem? Do I need to enter some other record for www instead of CNAME?

© Server Fault or respective owner

Related posts about dns

Related posts about records