DNS – MX-Type Records

  DNS, DNS Records, DNS Theory

We need MX records for email delivery. They allow you to set which mail server the e-mails should be delivered to.

How Does It Work?

When sending a message to the address hosting@wedos.com, for example, the sender’s mailserver first looks up the MX records of the wedos.com domain in the DNS. The following are set:

wedos.com.	300	IN	MX	10 wes1-mx1.wedos.net.
wedos.com.	300	IN	MX	10 wes1-mx2.wedos.net.
wedos.com.	300	IN	MX	20 wes1-mx-backup.wedos.net.

Based on these MX records, the sender’s mail server can translate domain names to IP addresses and knows where to deliver mail for hosting@wedos.com.

Setting-up MX Records

Usually MX records are set directly for a 2nd order domain (e.g. wedos.com), but they can also be specified for subdomains (e.g. mail.wedos.com). This is set only exceptionally, at the request of your e-mail administrator.

You can set and edit your MX records in the customer administration. The record specifies the domain name of the mail server to which mail for this domain is to be delivered. The server name is preceded by a priority that is significant if there are multiple MX records for one name. In that case, the servers are tested according to the increasing priority number (i.e. the record with the lowest number at the beginning has the highest priority). If the mail server does not respond from this record, an attempt is made to deliver mail to the next in order. The second and other servers, if present, therefore serve as backup mail servers. Multiple servers with the same priority can be used for load balancing.

How Do I Find My MX Records?

Contact your email provider. If you use or web hosting e-mail boxes set these three MX records one by one:

1 wes1-mx1.wedos.net
1 wes1-mx2.wedos.net
10 wes1-mx-backup.wedos.net 

Was this tutorial useful to you?