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. rel="nofollow noreferrer">http://www.example.com --> href="http://example.com" rel="nofollow
noreferrer">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
Answer
CNAMEs
from root to a subdomain are href="https://serverfault.com/questions/274106/is-there-any-way-to-point-the-root-domain-to-a-cname">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 href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect" rel="nofollow
noreferrer">redirect server which will bounce the users to the naked
domain.
Comments
Post a Comment