Net_DNS
[ class tree: Net_DNS ] [ index: Net_DNS ] [ all elements ]

Class: Net_DNS

Source Location: /Net_DNS-1.0.7/Net/DNS.php

Class Overview


Initializes a resolver object


Author(s):

Version:

  • 0.01alpha

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 71]
Initializes a resolver object

Net_DNS allows you to query a nameserver for DNS lookups. It bypasses the system resolver library entirely, which allows you to query any nameserver, set your own values for retries, timeouts, recursion, etc.



[ Top ]


Class Variables

$HFIXEDSZ =  12

[line 82]


Type:   mixed


[ Top ]

$INT16SZ =  2

[line 86]


Type:   mixed


[ Top ]

$INT32SZ =  4

[line 85]


Type:   mixed


[ Top ]

$PACKETSZ =  512

[line 81]


Type:   mixed


[ Top ]

$QFIXEDSZ =  4

[line 83]


Type:   mixed


[ Top ]

$resolver =

[line 79]

A default resolver object created on instantiation
  • Var: object

Type:   Net_DNS_Resolver


[ Top ]

$RRFIXEDSZ =  10

[line 84]


Type:   mixed


[ Top ]

$VERSION =  '1.00b2'

[line 80]


Type:   mixed


[ Top ]



Method Detail

Net_DNS (Constructor)   [line 97]

Net_DNS Net_DNS( [array $defaults = array()])

Initializes a resolver object

Parameters:

array   $defaults     

[ Top ]

classesbyname   [line 440]

integer classesbyname( string $class)

translates a DNS class from it's name to it's integer value. Valid

class names are:

  • IN
  • CH
  • HS
  • NONE
  • ANY


Parameters:

string   $class     A DNS packet class type

[ Top ]

classesbyval   [line 466]

string classesbyval( integer $classval)

Translates RR class integers into names

Translates the integer value of an RR class into it's name


Parameters:

integer   $classval     A DNS packet RR class integer

[ Top ]

opcodesbyname   [line 120]

integer opcodesbyname( string $opcode)

Translates opcode names to integers

Translates the name of a DNS OPCODE into it's assigned number listed in RFC1035, RFC1996, or RFC2136. Valid OPCODES are:


Parameters:

string   $opcode     A DNS Packet OPCODE name

[ Top ]

opcodesbyval   [line 146]

string opcodesbyval( integer $opcodeval)

Translates opcode integers into names

Translates the integer value of an opcode into it's name


Parameters:

integer   $opcodeval     A DNS packet opcode integer

[ Top ]

rcodesbyname   [line 185]

integer rcodesbyname( string $rcode)

Translates rcode names to integers

Translates the name of a DNS RCODE (result code) into it's assigned number.


Parameters:

string   $rcode     A DNS Packet RCODE name

[ Top ]

rcodesbyval   [line 217]

string rcodesbyval( integer $rcodeval)

Translates rcode integers into names

Translates the integer value of an rcode into it's name


Parameters:

integer   $rcodeval     A DNS packet rcode integer

[ Top ]

typesbyname   [line 299]

integer typesbyname( string $rrtype)

Translates RR type names into integers

Translates a Resource Record from it's name to it's integer value. Valid resource record types are:


Parameters:

string   $rrtype     A DNS packet RR type name

[ Top ]

typesbyval   [line 366]

string typesbyval( integer $rrtypeval)

Translates RR type integers into names

Translates the integer value of an RR type into it's name


Parameters:

integer   $rrtypeval     A DNS packet RR type integer

[ Top ]


Documentation generated on Wed, 03 Nov 2010 11:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.