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

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

2 Answers 2

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.