You are here

private function EmailValidator::checkMX in Zircon Profile 8

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

Check DNS Records for MX type.

Parameters

string $host Host:

Return value

bool

2 calls to EmailValidator::checkMX()
EmailValidator::checkHost in vendor/symfony/validator/Constraints/EmailValidator.php
Check if one of MX, A or AAAA DNS RR exists.
EmailValidator::validate in vendor/symfony/validator/Constraints/EmailValidator.php
Checks if the passed value is valid.

File

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

Class

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

Namespace

Symfony\Component\Validator\Constraints

Code

private function checkMX($host) {
  return checkdnsrr($host, 'MX');
}