Documentation

MXLookup
in package

MXLookup

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Thomas Däppen thomas.daeppen@comvation.com

version
1.0
subpackage

lib_framework

todo

Edit PHP DocBlocks!

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

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
access

private

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
access

private

Return values
string

query

_getMXRRs()

Get all mail exchange hosts with their preference from the DNS reply

public _getMXRRs() : array<string|int, mixed>
Tags
access

private

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
access

private

Return values
array<string|int, mixed>

arrData

_sendQuery()

Send a query the to DNS server and return its reply

public _sendQuery() : string
Tags
access

private

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
access

public

Return values
array<string|int, mixed>

arrMXRRs


        
On this page

Search results