I created a DNS record in co.cc to make it point to x10hosting account. So I have like <mydomain>.co.cc - A - <x10 ip>
Its working properly. Now problem is I have already mentioned name like blog.<mydomain>.co.cc
in my previous resumes which I cannot change. So is it possible to redirect sub-domain request to main domain using DNS record.
Best Answer
You can add a CNAME, but it would not suffice.
This way you only tell browsers that the IP of your blog is the same as the one pointed by your domain DNS record:
If your HTTP server does not implements Vhosts (and I suppose it does as you are in a shared server :), you would had done.
As your server is a Vhost, you have to instruct it to properly handle both blog.dom.tld and dom.tld as the same vhost. You can achieve this behavior using
ServerAlias
apache directive, for exampleEDIT:
don't know your host, but from their forum it seems you can login and do it by hand.