Subdomain in mx records
In the Linode DNS Manager control panel, the fields look like:
Mail Server | Preference | Subdomain | TTL
Am I correct in assuming that the 'Subdomain' field is for having MX records mapped to a subdomain?
So for example, if I have mg.example.com, I can put 'mg' in the subdomain field?
I'm asking because I've got a MailGun account and talking with them they said:
That MX record you mentioned is configured for your root domain. You do not want to add the Mailgun MX records to your root domain because it will cause conflict.
The Mailgun MX records will be configured for your subdomain, mg.example.com
Some DNS host providers will automatically be appended to the hostname field. Entry would look similar to the following examples :
Record Type : MX
Hostname : mg
Value : mxa.mailgun.org
Priority : 10
Record Type : MX
Hostname : mg
Value : mxb.mailgun.org
Priority : 10
Thanks in advance
1 Reply
You are correct. If you specify a subdomain for MX records, they will only resolve to that subdomain.
You can verify by performing dig
queries against both the root domain and subdomain.
$ dig example.com mx
. . .
;; AUTHORITY SECTION:
example.com. 1799 IN SOA ns1.linode.com.
$ dig mg.example.com mx
. . .
;; ANSWER SECTION:
mg.example.com. 21599 IN MX 10 mxb.mailgun.org.