Say I have mydomain.com:
Is it better to use option A:
[A] mydomain.com 123.45.67.89
[A] www.mydomain.com 123.45.67.89
or option B:
[A] mydomain.com 123.45.67.89
[CNAME] www.mydomain.com mydomain.com
What would be the impact actually by choosing one after the other?
Second question is, say I want to have subdomain at blog.mydomain.com. And I set it as an A records as follow:
[A] blog.mydomain.com 123.45.67.89
And to make it also accessible when user is typing www.blog.mydomain.com, I also insert the following record:
[A] www.blog.mydomain.com 123.45.67.89
Question is, is this a common practice? Or are there better ways to do this? What I want to achieve is (user access -> redirect to):
mydomain.com -> mydomain.com
www.mydomain.com -> mydomain.com
blog.mydomain.com -> blog.mydomain.com
www.blog.mydomain.com -> blog.mydomain.com
other.mydomain.com -> error
Cheers!