Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MX-records pointing to different domains on the same DNS-server?

Status
Not open for further replies.

donotunderstands22

Technical User
May 18, 2011
1
SE
Hi.

Is it possible to have 2 different MX records, one pointing to firstmaildomain.example.com (mail@firstmaildomain.example.com) and one pointing to secondmaildomain.example.com (mail@secondmaildomain.example.com).

Or are the only solution to add 2 extra DNS servers just for that, and make main DNS pointing to 2 NS-records for secondmaildomain.example.com and firstmaildomain.example.com, and in those nameservers the respective MX-records exists?
 
You can have multiple mx records. This is commonly done, especially in cases where you have a primary and backup. which would point to different locations. You use the number associated with the record to indicate priority, lower the number the higher the priority.
 
@Norway
yes but I don't think he is asking that...Or maybe he isn't sure what he is asking.

Norway is right about having multiple MX records for a domain but in the OP you give examples of mail@firstmaildomain.example.com and mail@secondmaildomain.example.com. These are two separate domains so your question kind of contradicts itself.

I will re-word it as to what I think you are asking then you confirm it:

Is it possible to have 2 different MX records, one pointing to firstmaildomain.example.com and one pointing to secondmaildomain.example.com THAT BOTH LOOK AFTER THE EXAMPLE.COM DOMAIN NAME?

FYI firstmaildomain.example.com and secondmaildomain.example.com would be the DNS names of your two mail servers on the internet. The MX record basically say any email for example.com send to either of these mail servers. Thats why I said you can't have mail@firstmaildomain.example.com and mail@secondmaildomain.example.com because after the @ sign these are no longer DNS A records of your mail servers. You are effectivly saying secondmaildomain.example.com is a domain and it would be treated as such. Does that make sense?

Take a look at my IT blog guides, knowledgebase and technical resources at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top