In reply to:
I would like mydomain.com(yahoo) to map to sub.domain.com (dreamhost)
1. Login to the DreamHost Web Panel
2. Go to Domains -> Manage Domains
3. Click on Add New Domain / Sub-domain
4. Scroll down to the "Mirrored" section
5. For "Create the mirror at:" type in mydomain.com
6. For " Mirror this site:" select sub.domain.com
7. Click on "Mirror this domain"
What will happen is that DreamHost will consider mydomain.com to be an alternate hostname. This means the web site can be reached at http://sub.domain.com/ or http://mydomain.com/
Once DNS lookups resolve to your IP address at DreamHost, web browser will tell the DreamHost computer that they want the web site named 'mydomain.com' or 'sub.domain.com' depending on the URL. Example:
URL: http://mydomain.com/somefile
becomes
GET /somefile HTTP/1.1
Host: mydomain.com
The DreamHost computer MUST be told about mydomain.com in order to do anything when a browser asks for a web site using that domain. And you tell the DreamHost computer by using the Domains -> Manage Domains -> Add New Domain / Sub-domain panel.
Customer since 2000
openvein.org