class DnsMock

Methods

static 
withMockedHosts(array $hosts)

Configures the mock values for DNS queries.

static 
checkdnsrr($hostname, $type = 'MX')

No description

static 
getmxrr($hostname, $mxhosts, $weight = null)

No description

static 
gethostbyaddr($ipAddress)

No description

static 
gethostbyname($hostname)

No description

static 
gethostbynamel($hostname)

No description

static 
dns_get_record($hostname, $type = DNS_ANY, $authns = null, $addtl = null, $raw = false)

No description

static 
register($class)

No description

Details

at line 40
static withMockedHosts(array $hosts)

Configures the mock values for DNS queries.

Parameters

array $hosts Mocked hosts as keys, arrays of DNS records as returned by dns_get_record() as values

at line 45
static checkdnsrr($hostname, $type = 'MX')

Parameters

$hostname
$type

at line 66
static getmxrr($hostname, $mxhosts, $weight = null)

Parameters

$hostname
$mxhosts
$weight

at line 85
static gethostbyaddr($ipAddress)

Parameters

$ipAddress

at line 104
static gethostbyname($hostname)

Parameters

$hostname

at line 120
static gethostbynamel($hostname)

Parameters

$hostname

at line 140
static dns_get_record($hostname, $type = DNS_ANY, $authns = null, $addtl = null, $raw = false)

Parameters

$hostname
$type
$authns
$addtl
$raw

at line 164
static register($class)

Parameters

$class