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
已提問 2 年前檢視次數 2091 次
1 個回答
5
已接受的答案

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
專家
Toni_S
已回答 2 年前
profile pictureAWS
專家
Chris_G
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南