MXLookup
in package
MXLookup
Tags
Table of Contents
Properties
- $arrMXRRs : mixed
- $dnsAddr : mixed
- $dnsReply : mixed
- $errorMsg : mixed
- $query : mixed
- $redirectCount : mixed
- $timeout : mixed
Methods
- _createQNAME() : string
- Creates the QNAME from the domain name for the question section of the DNS query
- _createQuery() : string
- Creates the MX-Lookup DNS query with the domain name QNAME
- _getMXRRs() : array<string|int, mixed>
- Get all mail exchange hosts with their preference from the DNS reply
- _parseMXRDATA() : array<string|int, mixed>
- Get the data from the reply
- _sendQuery() : string
- Send a query the to DNS server and return its reply
- getMailServers() : array<string|int, mixed>
- Get the mail exchange records from an domain name
Properties
$arrMXRRs
public
mixed
$arrMXRRs
= array()
$dnsAddr
public
mixed
$dnsAddr
$dnsReply
public
mixed
$dnsReply
$errorMsg
public
mixed
$errorMsg
$query
public
mixed
$query
$redirectCount
public
mixed
$redirectCount
= 0
$timeout
public
mixed
$timeout
= 3
Methods
_createQNAME()
Creates the QNAME from the domain name for the question section of the DNS query
public
_createQNAME(mixed $domain) : string
Parameters
- $domain : mixed
Tags
Return values
string —QNAME
_createQuery()
Creates the MX-Lookup DNS query with the domain name QNAME
public
_createQuery(mixed $QNAME) : string
Parameters
- $QNAME : mixed
Tags
Return values
string —query
_getMXRRs()
Get all mail exchange hosts with their preference from the DNS reply
public
_getMXRRs() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —arrMXRRs
_parseMXRDATA()
Get the data from the reply
public
_parseMXRDATA(mixed &$octNr[, mixed $rdataLength = 0 ]) : array<string|int, mixed>
Parameters
- $octNr : mixed
- $rdataLength : mixed = 0
Tags
Return values
array<string|int, mixed> —arrData
_sendQuery()
Send a query the to DNS server and return its reply
public
_sendQuery() : string
Tags
Return values
string —reply
getMailServers()
Get the mail exchange records from an domain name
public
getMailServers(mixed $domain) : array<string|int, mixed>
Parameters
- $domain : mixed
Tags
Return values
array<string|int, mixed> —arrMXRRs