?
Solved

Wildcard MX Records

Posted on 2011-05-05
7
Medium Priority
?
738 Views
Last Modified: 2014-07-12

Hi All,

I am setting up MX records for a domain and subdomains, and I want to use an MX wildcard if possible to avoid having to repeat the entries again and again.

However, I cannot work out how to do it, given the restriction that each subdomain needs its own A record (and www A record).

Simplistically, this is what I have:

+-+-+-+-+-+-+-+-+-+-+

MX Records:

a.emails.co.test      10      mailserver10.example
a.emails.co.test      20      mailserver20.example
b.emails.co.test      10      mailserver10.example
b.emails.co.test      20      mailserver20.example
c.emails.co.test      10      mailserver10.example
c.emails.co.test      20      mailserver20.example


A Records:

a.emails.co.test            192.168.1.1
b.emails.co.test            192.168.1.2
c.emails.co.test            192.168.1.3

www.a.emails.co.test            192.168.1.1
www.b.emails.co.test            192.168.1.2
www.c.emails.co.test            192.168.1.3

+-+-+-+-+-+-+-+-+-+-+


In actuality, I have 25 country subdomains and more could come online.

All of the MX records need to point to the same mailserver(s).  Every email comes into a single central location.


However, each of the subdomains has its own webserver that is managed locally, so I cannot just use a wildcard to point all of them to the same place.

There are also various other records relating to some of the subdomains, but just one is enough to scupper my initial idea of setting up the MX records thus:


*.emails.co.test      10      mailserver10.example
*.emails.co.test      20      mailserver20.example


This doesn't work of course, since the existence of any subdomain record irrespective of record type (e.g. www.b.emails.co.test) neuters the wildcard entry.




We have four mailservers in the MX priority list, and (currently) 25 subdomains, meaning I have to put in 100 MX records.

If any of the mailservers change their canonical names (a reasonable probability if it moves to another provider) then I'll have to change 25 (at least) MX records each time.  Not often, but hey!




Finally, it just looks crap having all those MX records repeating - there must be a better way??


So, any suggestions on how to do it differently?


Thanks,

Alan.
0
Comment
Question by:Alan
  • 4
  • 3
7 Comments
 
LVL 71

Accepted Solution

by:
Chris Dent earned 2000 total points
ID: 35698821
> meaning I have to put in 100 MX records.

Script it? Or make them into separate (delegated) domains and use a template zone file? Obviously you can't use the same file if the A records differ.

Chris
0
 
LVL 21

Author Comment

by:Alan
ID: 35701855
Hi Chris,

I wouldn't know where to begin with scripting since the management console is on a remote (c-panel style) site.

I'll look into delegated domains - not something I have any experience with so far!

Thanks,

Alan.
0
 
LVL 71

Assisted Solution

by:Chris Dent
Chris Dent earned 2000 total points
ID: 35701943
Oh fun, I do love those kind of things. GUI's... far too limited.

There's no way to get underneath it to the real DNS service / zone files? Maybe not, but just in case :)

Chris
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
LVL 21

Author Comment

by:Alan
ID: 35702311
Hi,

Yes - I agree, but unfortunately no way to do that.  I did ask them if I could email a formatted zone file to them (that would make it trivial to do in Excel or whatever), but no go - I have to do it 'manually' via the web interface.

:-(

Alan.
0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 35702325
Yuck, that's rubbish. I wish I had a better suggestion :-\

Chris
0
 
LVL 21

Author Comment

by:Alan
ID: 35703476
I'd look at moving the name server function elsewhere, but it is 'included' in a bundle of other stuff, and we would still pay the same apparently, plus wherever I moved it to would (presumably) charge, so I'd have to explain why I want to spend money - chances of that are never good :-P

Alan.
0
 
LVL 21

Author Closing Comment

by:Alan
ID: 40192599
Hi Chris,

Sorry for not closing this before.  I only just noticed it was still open, so allocated the points now, and tidied up.

Thanks for your help!

Alan.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
This applies to Dell but may also apply to other manufacturers as well. We ran across a few machines that just dropped recently it trust relationship with the server. After doing the basic removing and joining the domain again, it changed to No logo…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question