PHP Class Redaxscript\Validator\Dns

Since: 2.2.0
Author: Henry Ruhs
Author: Sven Weingartner
Inheritance: implements Redaxscript\Validator\ValidatorInterface
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Public Methods

Method Description
validate ( string $host = null, string $type = 'A' ) : integer validate the dns

Method Details

validate() public method

validate the dns
Since: 2.2.0
public validate ( string $host = null, string $type = 'A' ) : integer
$host string host of the domain
$type string optional domain type
return integer