Re:Please do not put IP addresses into DNS MX records
by teddyh on Monday February 22, 2021 @02:29AM
(#26221785)
> That said, the SMTP Relay server needs to know that "mx.example.net." is one of its names, if it is a fallback server.
It also would need to know its name in order to have SMTP over TLS to work (as required by DANE).
* http://jdebp.uk./Softwares/djbwares/guide/commands/tinydns-d...
That said, the SMTP Relay server needs to know that "mx.example.net." is one of its names, if it is a fallback server.
One can envision a world where records in the DNS database map a (domain,service,transport) tuple directly to a set of (address,port,preference,weight) tuples, where that is what administrators consistently deal with for everything, where that is how the on-the-wire protocol actually works, and where SMTP Relay loop prevention works by comparing IP addresses; but SMTP doesn't work like that, the DNS did not start out like that, the DNS has gone through at least two iterations to even get to where it is now with SRV and MX records, and the DNS has grown through fitting new mechanisms against existing ones.
One point about "mx.example.net.": If the intermediate domain names are in-bailiwick like that, and the MX response contains "glue", then it is not actually "one additional request".