string
nameserver [, int
port] [, int
timeout] )DNSAnswer
sendQuery( DNSQuery
dnsquery [, boolean
useTCP] )DNSQuery
object which contains information to query to the name server.DNSAnswer
Object
array
labels )DNSName
DNSName::newFromString( string
domainname )DNSName
Object
boolean
isRealDomainName()string
asOctets()string
getCanonicalName()int
stream, int
limit )fsockopen
.DNSResolver::sendQuery()
method. Instantiating this class directly with new
operator is discouraged.value | meaning | description |
---|---|---|
0 |
no error condition |
The query was successfully accepted and interpreted by the name server. |
1 | format error |
The name server was unable to interpret the query. |
2 |
server failure |
The name server was unable to process this query due to a problem with the name server. |
3 |
name error |
Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist. |
4 |
not implemented |
The name server does not support the requested kind of query. |
5 |
refused |
The name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data. |
6-15 | reserved | Reserved for future use. |
DNSRecord
objects that hold the same query record as given to DNSQuery
object.DNSRecord
objects that hold ANSWER records returned by the name server.DNSRecord
objects that hold AUTHORITY records returned by the name server.DNSRecord
objects that hold ADDITIONAL records returned by the name server.DNSRecord
dnsrecord [, int
flags ] )DNSRecord
object.name | description |
---|---|
DNS_HEADERSPEC_RECURSION_DESIRED (default)
|
If set, it instructs the name server to pursue the query recursively over the reachable name servers. This bit will be copied into the query record of response message. |
string
asOctets()DNSName
name, int
type [, int
dclass] [, int
ttl] [, array
specific_fields] )DNSName
object for a domain name
value | meaning |
---|---|
DNS_RECORDTYPE_A |
a host address | DNS_RECORDTYPE_NS |
an authoritative name server |
DNS_RECORDTYPE_CNAME |
an alias |
DNS_RECORDTYPE_SOA |
start of authority zone |
DNS_RECORDTYPE_PTR |
a domain name pointer |
DNS_RECORDTYPE_MX |
mail exchange |
DNS_RECORDTYPE_AAAA |
a IPv6 host address |
DNS_RECORDTYPE_ANY |
(used only for querying) to retrieve any records associated with the name |
DNS_CLASS_INTERNET
.
key name | type | value |
---|---|---|
address |
DNS_RECORDTYPE_A DNS_RECORDTYPE_AAAA |
A DNSName object that represents an IP address. |
dname |
DNS_RECORDTYPE_PTR DNS_RECORDTYPE_NS DNS_RECORDTYPE_CNAME |
A DNSName object that represents a domain name. |
preference |
DNS_RECORDTYPE_MX
|
An integer value that specifies how much preferred the host is for mail exchange among others. The lower value means the stronger preference. |
exchange |
DNS_RECORDTYPE_MX
|
A DNSName object that represents the domain name of the host to use for mail exchange. |
resp_person |
DNS_RECORDTYPE_SOA
|
The mail address of the person responsible for this zone. |
source |
DNS_RECORDTYPE_SOA
|
A DNSName object that specifies the domain name of the master name server, from which the zone information is transferred. |
serial |
DNS_RECORDTYPE_SOA
|
An integer value with which the slave(secondary) server identifies the revision of the zone information transferred from the master(primary) name server. |
refresh |
DNS_RECORDTYPE_SOA
|
An integer value that specifies in seconds the interval after which the slaveserver tries to check the master name server for the updated zone information. |
retry |
DNS_RECORDTYPE_SOA
|
An integer value that specifies in seconds the interval after which the slave server retries zone transfer when the previous try failed. |
expire |
DNS_RECORDTYPE_SOA
|
An integer value that specifies in seconds the period during which the slave server sees the zone information is valid. After the expiry, the server will stop sending any records of the zone in response to the queries until the entire zone information is updated. |
minttl |
DNS_RECORDTYPE_SOA
|
An integer value that specifies in seconds the minimum time the DNS records should be cached for. |
mixed
getTypeSpecificField( string
name )