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

Class: Net_Whois

Source Location: /Net_Whois-1.0.6/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

__construct (Constructor)   [line 140]

Net_Whois __construct( )

Constructs a new Net_Whois object
  • Access: public

[ Top ]

getAuthoritative   [line 201]

bool getAuthoritative( )

getAuthoritative
  • Return: Query for authoritative result?

[ Top ]

getDomainServer   [line 394]

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 256]

array getOptions( )

Retrieve which port to connect to.

[ Top ]

getPort   [line 229]

integer getPort( )

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

[ Top ]

getTimeout   [line 174]

mixed getTimeout( )

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

[ Top ]

log   [line 533]

array log( )

Return log for the last query
  • Access: public

[ Top ]

query   [line 275]

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 319]

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 335]

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 352]

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 189]

void setAuthoritative( [bool $authoritative = false])

setAuthoritative
  • Access: public

Parameters:

bool   $authoritative   —  defaults to false

[ Top ]

setOptions   [line 242]

void setOptions( mixed $options)

setOptions

Parameters:

mixed   $options   —  options

[ Top ]

setPort   [line 216]

void setPort( [integer $port = false])

set which port should be used
  • Access: public

Parameters:

integer   $port   —  Port to use

[ Top ]

setTimeout   [line 160]

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 Sun, 08 Dec 2019 12:00:06 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.