diff --git a/EmailValidator/Validation/DNSCheckValidation.php b/EmailValidator/Validation/DNSCheckValidation.php index 2f3a237..ecca1dd 100644 --- a/EmailValidator/Validation/DNSCheckValidation.php +++ b/EmailValidator/Validation/DNSCheckValidation.php @@ -44,6 +44,8 @@ public function getWarnings() protected function checkDNS($host) { + $host = rtrim($host, '.') . '.'; + $Aresult = true; $MXresult = checkdnsrr($host, 'MX');