How many MX type Records can you have?

1

My current DNS provider shows 5 MX type Records. I am in the process of trying to make Route 53 my DNS. When I create Records in the Hosted Zone, I get an error. How many MX type Records can I have?

A record with the specified name already exists. (InvalidChangeBatch 400: Tried to create resource record set [name='minnovation.io.', type='MX'] but it already exists)

profile picture
newbie
asked 2 years ago1884 views
1 Answer
5
Accepted Answer

There can be only one MX record per name. But each record can have multiple values. So if you have multiple email servers able to receive traffic for your domain name, then just add those as multiple lines in the record. If you are using web console your record name should be the domain (example.com) so leave subdomain empty. Select MX record type. For value write for example:

10 mailserver1.example.com
20 mailserver2.example.com
50 backupserver.example.net

If you are doing this via infrastructure as code, CLI or API then just make sure you have the value on separate lines. Quote from web console:

Enter multiple values on separate lines. Format: [priority] [mail server host name]

profile pictureAWS
EXPERT
Toni_S
answered 2 years ago
profile pictureAWS
EXPERT
Chris_G
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions