Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hy Guys!

I have a problem here.

I have a domain in a host just to send e-mails. Now I have to publish a website( in the same domain, but in a different host.

Ask: How can I have the same domain ( in 2 different hosts?


share|improve this question

closed as not a real question by GregD, MadHatter, Massimo, jscott, pauska Oct 5 '11 at 15:10

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Your lack of information....disturbs me. – GregD Oct 5 '11 at 14:44
isn"t this why MX records are used? – ratchet freak Oct 5 '11 at 14:46
Guys, do you want me to put here where I host my sites? Do you wanna the login and password to? It is a generic question. I'm not an expert in servers and hosts and I didn't know where to start. So, keep "playin" serverfault and collecting points. – Thiago Guttierre Oct 5 '11 at 16:57

Edit your DNS zone to name your mail host and your web host (or something similar).

share|improve this answer

If all the first host is doing is email sending, then setting and to the second host is no problem. If the first host is also receiving email then this is what you use MX records for. The MX record will take care of routing the email while you point the main A record to the web server. If the first host also has webservices or something for checking your email then I'd probably use a sub-domain for that such as

If you have different webservices on each server and want both under the namespace then you probably want to setup a reverse proxy on one of the hosts.

Also it's no problem to create an A record with both IP addresses. However this is probably not what you want for this situation. You would do that to do simple load balancing.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.