cancel
Showing results for 
Search instead for 
Did you mean: 

mx records for a subdomain

scthermo
Newbie
Posts: 4
Registered: ‎28-02-2014

mx records for a subdomain

I am in the process of deploying a new mail server and I want to test it by sending test mail to a sub domain but the remainder of the mail should still be sent to the existing server.  We have multiple broadband lines so we have a few static IPs.
My intention is to point a sub domain of our hosted domain at a static IP which is routed to the new server, however I am not sure my DNS entries are correct, is the correct?  It feels as if there should be more to the second mx record.
myhosteddomain.co.uk.
Left field                                         Type Pri Right field
mail1                                         a         x.x.x.100
mailtest.myhosteddomain.co.uk. a         x.x.x.120
                                                mx         20 mail1
                                                mx         30 mailtest.myhosteddomain.co.uk.
Thanks
3 REPLIES 3
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: mx records for a subdomain

That looks fine to me.
Edit: I misinterpreted what it is you're trying to achieve. You need a 'mailtest' on the left hand side of the final MX record. It's a tad irrelevant, but the record needn't be a lower priority than mail1 either.
mail1                   A               x.x.x.100
mailtest                A       x.x.x.120
                      MX 20         mail1
mailtest               MX 20            mailtest

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

scthermo
Newbie
Posts: 4
Registered: ‎28-02-2014

Re: mx records for a subdomain

Bob, thanks.  I hadn't appreciated that the left field for mail1, because it is blank, is actually pointing at the hosted domain name.
Presumably using FQDN it would read
myhosteddomainname.co.uk. MX 20 mail1.myhosteddomainname.co.uk.
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: mx records for a subdomain

Yep, that's right. Any record that's not 'qualified' with a trailing dot, will have myhosteddomainname.co.uk appended to it.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵