Please do not put IP addresses into DNS MX records

Hanno's Blog

Sunday, February 21. 2021

Please do not put IP addresses into DNS MX records


Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Dear Hanno,

I like to comment on your posting with the following remarks:

1. [Some] mail servers do configure an IP address.
No, it is the DNS responsible person acting here erroneously.

2. Given (1.) this is only possible for IPv4 addresses since they obey the same syntax as domain names (dotted-decimal).
IPv6 addresses with colons have a different syntax.

3. To publish DNS records usually requires the parsing of the DATA section prior of populating the database for a DNS content server. It is an easy task for the SW to recognise and check IPv4 addresses prior of inserting (and of course to avoid them).

4. You should blame these SW; errors are human. SW should validate the input.

5. Setting up MX records needs to supply
a) the domain name
b) the weight
c) the responsible MX server (given by name)
d) the corresponding A/AAAA addresses.

6. Given a functioning MX server
a) reverse DNS entires (in-addr.arpa, ip6.arpa),
b) SPF records,
c) TLSA records,
d) and other domain verification materials
needs to be published.

Today in the current Internet, it is much more than just setting up a MX.

Regards.
--eh.
#1 Erwin Hoffmann (Homepage) on 2021-02-21 22:46 (Reply)
The MX record's name also serve as the key in the SSL certificate when using DKIM DMARC. So, if you use an IP address here, there's no way you'll be able to set up DKIM/DMARC.
#2 Spongebob on 2021-02-21 22:58 (Reply)
This has nothing to do with DKIM/DMARC. Maybe you're referring to mta-sts where the mx actually needs to have a valid certificate for that hostname.
#2.1 Hanno (Homepage) on 2021-02-22 08:38 (Reply)

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

About

This blog is written by Hanno Böck. Unless noted otherwise, its content is licensed as CC0.

You can find my web page with links to my work as a journalist here.

I am also publishing a newsletter about climate change and decarbonization technologies.

The blog uses the free software Serendipity and is hosted at schokokeks.org.

Hanno on Mastodon | Contact / Imprint | Privacy / Datenschutz