private function EmailValidator::checkHost in Plug 7
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 lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ EmailValidator.php - Checks if the passed value is valid.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ EmailValidator.php, line 124
Class
- EmailValidator
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
private function checkHost($host) {
return $this
->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA'));
}