You are here

private function EmailValidator::checkHost in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Constraints/EmailValidator.php \Symfony\Component\Validator\Constraints\EmailValidator::checkHost()

Check if one of MX, A or AAAA DNS RR exists.

Parameters

string $host Host:

Return value

bool

1 call to EmailValidator::checkHost()
EmailValidator::validate in vendor/symfony/validator/Constraints/EmailValidator.php
Checks if the passed value is valid.

File

vendor/symfony/validator/Constraints/EmailValidator.php, line 151

Class

EmailValidator
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

private function checkHost($host) {
  return $this
    ->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA'));
}