Domains and pointers

Hi, I have a couple of domain names on the server that I wish to have redirected automatically to another domain.

Kind of like an alias I guess, but I have to ensure that the actual domain name is what they end up with.

For example, when the visitor types in domain2.com I want it to automatically pull up domain1.com and have that (domain1.com) listed in the browser address bar.

Thanks.

Just add a redirect, you can do this with php

<? header("Location: http://www.domain1"); ?>