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.

I have a stage.domainX.com and domainX.com. How do I adjust the MX records accordingly to where all mail sent to stage.domainX.com goes to one server (IP1 66.xx.xx.xx) and all other mail sent to domainX.com goes to another server (IP2 67.xx.xx.xx)?

info@stage.domainX.com -> IP1
info@domainX.com -> IP2
share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Make sure you have DNS records for the mail servers, for example:

mail1.domainX.com.         IN    A     66.xx.xx.xx
mail2.domainX.com.         IN    A     67.xx.xx.xx

Then create an MX record for each domain:

stage.domainX.com.         IN    MX    10 mail1.domainX.com.
domainX.com.               IN    MX    10 mail2.domainX.com.
share|improve this answer
add comment

The correct way of doing it would be the delegating stage.domainX.com Refer to the documentation to delegate stage.domainX.com http://www.zytrax.com/books/dns/ch9/delegate.html

share|improve this answer
    
Delegating is completely unnecessary in this situation. In fact, it would only complicate things by requiring at least one more nameserver to delegate to. –  Cakemox Apr 8 '11 at 19:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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