src/Util/Validator.php
protected function validateUrlActive($field, $value)
    {
        foreach (static::$validUrlPrefixes as $prefix) {
            if (\strpos($value, $prefix) !== false) {
                $host = \parse_url(\strtolower($value), PHP_URL_HOST);

                return \checkdnsrr($host, 'A') || \checkdnsrr($host, 'AAAA') || \checkdnsrr($host, 'CNAME');
            }
        }

        return false;
    }
protected function validateUrlActive($field, $value)
    {
        foreach (static::$validUrlPrefixes as $prefix) {
            if (\strpos($value, $prefix) !== false) {
                $host = \parse_url(\strtolower($value), PHP_URL_HOST);

                return \checkdnsrr($host, 'A') || \checkdnsrr($host, 'AAAA') || \checkdnsrr($host, 'CNAME');
            }
        }

        return false;
    }
protected function validateUrlActive ( $ field , $ value ) { foreach ( static :: $ validUrlPrefixes as $ prefix ) { if ( \ strpos ( $ value , $ prefix ) !== false ) { $ host = \ parse_url ( \ strtolower ( $ value ) , PHP_URL_HOST ) ; return \ checkdnsrr ( $ host , 'A' ) || \ checkdnsrr ( $ host , 'AAAA' ) || \ checkdnsrr ( $ host , 'CNAME' ) ; } } return false ; }
Validate that a field is an active URL by verifying DNS record

@param  string $field
@param  mixed  $value

@return bool
Validate that a field is an active URL by verifying DNS record