]> gitweb.michael.orlitzky.com - valtz.git/commit
Warn about IP addresses in hostname fields.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 20 Oct 2020 22:00:52 +0000 (18:00 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 20 Oct 2020 22:00:52 +0000 (18:00 -0400)
commit2533843a92ae5a7cb04894c815b844b02ffa4242
tree18d65f330ac9d7c4d1a619de8fc325a5ee206e34
parent097807e6b55527da495fa668a3c47fc938393743
Warn about IP addresses in hostname fields.

A common error is to specify an IP address as the result of an MX
lookup. The RFCs (974, 1035, 2181...) state that the result should be
a "domain name," which in this context, means "host name." This commit
adds a check on "hostname" fields that rejects a dotted-quad contained
therein. In particular, it catches the aforementioned MX record error.
valtz