Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Can someone confirm a query for me – we have separate sub domains set up in as separate mail domain accounts. How should we compile our DNS to facilitate this?

I will try and simplify this a little, so in our admin console we have – | Users - | Groups | Users - | Groups | Users - | Groups

How should we setup this up correctly in DNS? Should we setup independent DNS zone files (for domain, sub.domain, and sub2.domain) or can each MX record be stated under the zone file?

share|improve this question
up vote 1 down vote accepted

I'm not entirely sure about your DNS server, but the general idea is to create a subdomain zone (subordinate or separate) and assign the NS, MX, and default A records to it just like you did for

share|improve this answer
Many thanks Hyppy, I will try creating separate DNS zone files for sub.domain and sub2.domain (independent from and test. – Marc Jun 13 '12 at 15:34

You can do seperate mx records for the sub domains, see below for the MX in your example, Assuming each subdomain has a seperate mail server I set the a records up for 3 mail servers

@ IN MX 10 mail
subdmain1 IN MX 10 mail2
subdomain2 IN MX mail3

mail IN A (Mail server for main domain)
mail2 IN A (mail server for subsomain 1)
mail3 IN A (mail server for subsomain 2)

share|improve this answer

Your Answer


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.