Verify reverse DNS of a mail server IP (FCrDNS)
check fcrdns | reverse dns does not match hostname | emails rejected because of ptr | dig | dns | ptr | mailptr=$(dig +short -x 203.0.113.10 | head -n 1); echo "PTR: $ptr"; dig +short "$ptr" ALooks up the PTR hostname of the IP and then queries its A record. Only if the original IP appears there is the reverse DNS entry considered confirmed, which many mail servers require. Ideally the hostname also matches the HELO name of the mail server.
Note: For IPv6 addresses, query AAAA instead of A at the end.
Also searched as
- check fcrdns
- reverse dns does not match hostname
- emails rejected because of ptr