I have tried setting 'blog.mydomain.com' for blogspot, using CNAME, and it worked fine. However, I was wondering if I could still use 'www.mydomain.com' for my main website. So my question is: Is there a way to have www.mydomain.com point to my website which is hosted somewhere and have blog.mydomain.com point to blogspot?
I believe using CNAME is the right way to do it. Have 127.0.0.1 as the IP address, set 'ghs.google.com' as the target host for 'blog.mydomain.com' and set the nameserver as the target host for 'www.mydomain.com'. Am I right on this? If so, I received two nameservers from my webhost, am I suppose to omit one of them (I heard they provide two for redundancy)?
[This post has been edited by p_r_bangkok_th on Apr 6, 2008 10:20am.]
> Is there a way to have www.mydomain.com point to my website which is hosted somewhere and have blog.mydomain.com point to blogspot?
Possibly. There is a difference between a Target Host and a Name Server.
For a CNAME record, when you set a subdomain, 'blog' for example, to use the Target Host 'ghs.google.com', that means that your subdomain is hosted at the same IP address as 'ghs.google.com'.
So setting a name server as your Target Host is saying that your 'www' domain is hosted on the same server that is your web host's name server. But name server's don't actually host domains, they just output the IP address location for another server that actually host the domain.
That means you can either (1) Set a static IP address A record using our Dynadot DNS for your www sudomain or (2) Set your domain to use your web hosts name servers and have them add a blog subdomain CNAME record to their name servers. You can only do the first option if your hosting is on a static IP address.