Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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(asp.net-mvc-3) in the same domain, but in a different host.

Ask: How can I have the same domain (www.domain.com) in 2 different hosts?

Tks.

share|improve this question
4  
Your lack of information....disturbs me. –  GregD Oct 5 '11 at 14:44
1  
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
add comment

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.

2 Answers

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

share|improve this answer
add comment

If all the first host is doing is email sending, then setting www.example.com and domain.com 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 mail.example.com.

If you have different webservices on each server and want both under the www.domain.com 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
add comment

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