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

Class: Net_DNS2_Resolver

Source Location: /Net_DNS2-1.4.0/Net/DNS2/Resolver.php

Class Overview

Net_DNS2
   |
   --Net_DNS2_Resolver

This is the main resolver class, providing DNS query functions.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Net_DNS2

Net_DNS2::__construct()
Constructor - base constructor for the Resolver and Updater
Net_DNS2::autoload()
autoload call-back function; used to auto-load classes
Net_DNS2::cacheable()
a simple function to determine if the RR type is cacheable
Net_DNS2::checkServers()
checks the list of name servers to make sure they're set
Net_DNS2::expandIPv6()
formats the given IPv6 address as a fully expanded IPv6 address
Net_DNS2::expandUint32()
PHP doesn't support unsigned integers, but many of the RR's return unsigned values (like SOA), so there is the possibility that the value will overrun on 32bit systems, and you'll end up with a negative value.
Net_DNS2::isIPv4()
returns true/false if the given address is a valid IPv4 address
Net_DNS2::isIPv6()
returns true/false if the given address is a valid IPv6 address
Net_DNS2::sendPacket()
sends a standard Net_DNS2_Packet_Request packet
Net_DNS2::setServers()
sets the name servers to be used
Net_DNS2::signSIG0()
adds a SIG RR object for authentication
Net_DNS2::signTSIG()
adds a TSIG RR object for authentication

Class Details

[line 63]
This is the main resolver class, providing DNS query functions.


[ Top ]


Method Detail

__construct (Constructor)   [line 73]

Net_DNS2_Resolver __construct( [ $options = null])

Constructor - creates a new Net_DNS2_Resolver object
  • Access: public

Overrides Net_DNS2::__construct() (Constructor - base constructor for the Resolver and Updater)

Parameters:

mixed   $options     either an array with options or null

[ Top ]

iquery   [line 279]

Net_DNS2_RR iquery( Net_DNS2_RR $rr)

does an inverse query for the given RR; most DNS servers do not implement inverse queries, but they should be able to return "not implemented"
  • Return: object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

Net_DNS2_RR   $rr     the RR object to lookup

[ Top ]

query   [line 90]

Net_DNS2_RR query( string $name, [string $type = 'A'], [string $class = 'IN'])

does a basic DNS lookup query
  • Return: object
  • Throws: Net_DNS2_Exception
  • Access: public

Parameters:

string   $name     the DNS name to loookup
string   $type     the name of the RR type to lookup
string   $class     the name of the RR class to lookup

[ Top ]


Documentation generated on Mon, 15 Dec 2014 05:30:19 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.