DnsMock
class DnsMock
Methods
Details
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 |
static
checkdnsrr($hostname, $type = 'MX')
Parameters
static
getmxrr($hostname, $mxhosts, $weight = null)
Parameters
| $hostname | |
| $mxhosts | |
| $weight | |
static
gethostbyaddr($ipAddress)
Parameters
static
gethostbyname($hostname)
Parameters
static
gethostbynamel($hostname)
Parameters
static
dns_get_record($hostname, $type = DNS_ANY, $authns = null, $addtl = null, $raw = false)
Parameters
| $hostname | |
| $type | |
| $authns | |
| $addtl | |
| $raw | |
static
register($class)
Parameters