I am building a site for a friend of mine.
I have done similar before where I would forward a domain name to a subdomain of my site and then masked it.
This worked well with GoDaddy and It was seemless.
But my friend purchased a domain from inmotionhosting and they have no forwarding feature they just require you to set up the nameservers for where it is to be transfered. Is there a way to transfer it to my subdomain?
No, not as you describe it.
You set up DNS on immotion to some DNSserver, and then there is a record on that DNS server that says “this domain y.com is served by the computer at host with the ip address x.x.x.x”.
Then the web server at x.x.x.x has to know to serve the requests for y.com.
That is how the web server at x.x.x.x knows to serve your domain a.com.
what happened with the redirects is that the web server at x.x.x.x was told to serve z.com, and the we bserver configuration for z.com told it to get the files from the same place as subdomain.a.com.
I am simplifying, but that is pretty much it.
Ask your ISP if you can add another domain to your account.
If they say yes, then that means they will set up the web server at x.x.x.x (or some other IP address they have a web server at) to serve files for y.com.
They will also tell you the IP address of at least 2 DNS servers that will handle that domain (Including mail and ftp because you will want that too .
Fill in those DNS server IP addresses at inmotionhosting, then wait a day or so, and you will be good to go.
If you do this a lot, you should seriously consider an ISP account where you can host as many domains SEPARATELY as you will need – redirects are a big security issue, and they are going to hurt in search engine rankings too, big time.
Just for what it is worth, which may not be much, I have all my domains registered at godaddy, and they point to a free dns server at zoneedit.com, and each zone there points to my ISP at asmallorange.com, which I highly recommend.
by: Barry C
on: 8th December 07