My client would like to use the root/naked domain name of his site, rather than the www subdomain. I am not overly savvy on the fine points on DNS. Is it safe to create a CNAME record that points the www subdomain to the root? i.e. http://www.example.com --> http://example.com I have seen examples redirecting TO the www, but not the reverse.

If it matters, the site is on Azure, and DNS settings are hosted at dreamhost.

Many thanks

up vote 2 down vote accepted

CNAMEs from root to a subdomain are not good, but the reverse seems harmless. You can create a CNAME for www as you described and DNS should be ok. But now I can hit your site as example.com or www.example.com. This may not be as neat as your client desires. A better solution would be to create an A record for www which points at a redirect server which will bounce the users to the naked domain.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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