How in DNS can i redirect all A and MX records from example.us to example.org?
Therefore:
- Users who go to www.example.us will be forwarded to www.example.org
- An email to webmaster@example.us will be forwarded to webmaster@example.org
Thanks
|
How in DNS can i redirect all A and MX records from example.us to example.org? Therefore:
Thanks |
|||
|
|
In the DNS for example.org you would have something like this:
In the DNS for example.us you could either mirror the above or use a CNAME like this:
You would then have to tell your web and mail servers to handle the second domain.
For your email server you would set an alias or depending on what mail server your using there's probably a configuration directive to have it do the aliasing for multiple domains automatically. Just for clarification you can't really "redirect" solely using DNS. DNS only translates between the domain name (example.org) and the IP Address (127.0.0.1). You can use DNS to tell the client to look at another domain for the final resolution of the IP Address (ie. use a CNAME), but the services running on that sever need to know how to handle the multiple domains. That said, many services only care about the IP Address and so will handle the extra domain without any addtional configuration, but often for http and email you will want to tweak how each domain is handled. |
||||
|
|
|
There is no "jolly" DNS record to forward all subdomains. You should change every
Don't forget the final dot! |
||||
|
|
|
If you own both example.us and example.org, just set the DNS records on both domains to point to the same servers. On the web server, add a virtual host or rewrite rule to trap requests for .us and 301 redirect them to the .org name. On the mail server, add the .us domain as an alias for the .org domain and people will be able to use either to get mail to your mailboxes. |
|||
|
|
|
It's not clear why you'd want to do that, but you're probably approaching your problem at the wrong level. |
|||
|
|