The Net_DNS_RR class provides methods of parsing resource records returned by a nameserver, creation of resource record objects to be sent to a nameserver, and the ability to access each component of an RR as an object property.
Each resource record object MUST contain the following properties:
name - The DNS name of the RR
type - The RR type
class - The RR class (normally IN)
ttl - The RR time to live
rdlength - The amount of data (in bytes) of the rdata section
rdata - The data (uncompressed) of the right hand side of the RR
type is a supported RR type,
it will automatically be decompressed and/or decoded
into its appropriate property values. The values inside
of an RR object will vary based on the type of RR.
Supported RR types:
address - IPv4 style address
address - IPv6 style address
cname - The canonical name of the queried host
cpu - The host CPU type
os - Type host operating system
preference - The MX preference (lower takes priority
exchange - The name of the mail exchange host
order - unknown
preference - unknown
flags - unknown
services - unknown
regex - unknown
replacement - unknown
nsdname - The name of the NS record nameserver
ptrdname - The name for the queried IP address
mname - Master nameserver hostname as
specified in the SOA record - not neccessarily accurate
rname - Email address of the person
responsible for the zone - not neccessarily accurate
serial - The serial number (version
number) of the retrieved zone
refresh - The length of time before
the zone should be refresed
retry - The length of time between
retries for slave servers to refresh the zone
expire - The length of time before
slave servers should consider the data invalid without refreshing
the zone data.
minimum - The default TTL for RRs
inside of the zone that are not otherwise specified.
preference - unknown
weight - unknown
port - unknown
target - unknown
time_signed - The time the signature
has was created
fudge - The time offset that is
acceptable between the client and the server
mac_size - The size of the following
mac - The data containing the
has sent by the client/server
original_id - The ID sent to or
received from the server identifying this query.
error - The value of the error
calculating or verifying the signature.
other_len - The amount of data (in
bytes) additional to the signature
other_data - Additional data required
by the nameserver for the signature.
key - The key shared by the client and
the server to validate authorization.
text - The text defined in the record