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

Class: Net_Whois

Source Location: /Net_Whois-1.0.5/Whois.php

Class Overview

PEAR
   |
   --Net_Whois

Looks up records in the databases maintained by several Network Information Centres (NICs). This class uses PEAR's Net_Socket:: class.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 41]
Looks up records in the databases maintained by several Network Information Centres (NICs). This class uses PEAR's Net_Socket:: class.


[ Top ]


Class Variables

$authoritative =  false

[line 52]

Retrieve authoritative definition only
  • Access: public

Type:   boolean


[ Top ]

$options =  null

[line 68]

See options for stream_context_create.
  • Access: public

Type:   mixed


[ Top ]

$port =  43

[line 60]

Port for whois servers
  • Access: public

Type:   int


[ Top ]



Method Detail

Net_Whois (Constructor)   [line 135]

Net_Whois Net_Whois( )

Constructs a new Net_Whois object
  • Access: public

[ Top ]

getAuthoritative   [line 196]

bool getAuthoritative( )

getAuthoritative
  • Return: Query for authoritative result?

[ Top ]

getDomainServer   [line 387]

string getDomainServer( string $q)

Determines the correct whois server to connect to based upon the domain
  • Return: whois server ip address
  • Access: public

Parameters:

string   $q     domain name

[ Top ]

getOptions   [line 250]

array getOptions( )

Retrieve which port to connect to.

[ Top ]

getPort   [line 224]

integer getPort( )

Retrieve which port to connect to.
  • Return: port to connect to

[ Top ]

getTimeout   [line 169]

mixed getTimeout( )

Retrieve timeout value
  • Return: either false or an integer value
  • Access: public

[ Top ]

query   [line 269]

mixed query( string $domain, [string $userWhoisServer = null])

Connect to the necessary servers to perform a domain whois query. Prefix queries with a "!" to lookup information in InterNIC handle database.

Add a "-arin" suffix to queries to lookup information in ARIN handle database.

  • Return: returns a PEAR_Error on failure, or a string on success
  • Access: public

Parameters:

string   $domain     IP address or host name
string   $userWhoisServer     server to query (optional)

[ Top ]

queryAPNIC   [line 312]

mixed queryAPNIC( string $domain)

Use the Asia/Pacific Network Information Center (APNIC) database.

It contains network numbers used in East Asia, Australia, New Zealand, and the Pacific islands.

  • Return: returns a PEAR_Error on failure, or a string on success
  • Access: public

Parameters:

string   $domain     IP address or host name

[ Top ]

queryIPv6   [line 328]

mixed queryIPv6( string $domain)

Use the IPv6 Resource Center (6bone) database. It contains network names and addresses for the IPv6 network.
  • Return: returns a PEAR_Error on failure, or a string on success
  • Access: public

Parameters:

string   $domain     IP address or host name

[ Top ]

queryRADB   [line 345]

mixed queryRADB( string $ipAddress)

Use the Route Arbiter Database (RADB) database. It contains route policy specifications for a large number of operators' networks.
  • Return: returns a PEAR_Error on failure, or a string on success
  • Access: public

Parameters:

string   $ipAddress     IP address

[ Top ]

setAuthoritative   [line 184]

void setAuthoritative( [bool $authoritative = false])

setAuthoritative
  • Access: public

Parameters:

bool   $authoritative     defaults to false

[ Top ]

setOptions   [line 236]

void setOptions( mixed $options)

setOptions

Parameters:

mixed   $options     

[ Top ]

setPort   [line 211]

void setPort( [integer $port = false])

set which port should be used
  • Access: public

Parameters:

integer   $port     Port to use

[ Top ]

setTimeout   [line 155]

void setTimeout( [integer $timeout = false])

Set timeout value - number of seconds afterwhich an attempt to connect to a whois server should be aborted.
  • Access: public

Parameters:

integer   $timeout     false is also an acceptable value

[ Top ]


Documentation generated on Wed, 10 Aug 2011 17:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.