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

Class: Dns_Module

Source Location: /dns.php

Class Overview

Module_Skeleton
   |
   --Dns_Module



Variables

Methods



Class Details

[line 6]


[ Top ]


Class Variables

$mysql =

[line 7]



Tags:

access:  public

Type:   mixed


[ Top ]

$pgsql =

[line 8]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


method add_record [line 239]

bool add_record( string $mZone, string $mName, string $mRR, string $mParameter, [int $mTTL = 86400])

bool add_record (string, string, string, string, int)

Adds a new record to a zone.




Tags:

access:  public


Parameters:

string   $mZone   zone name (normally domain name)
string   $mName   name of the record to add
string   $mRR   resource record type [MX, A, AAAA, CNAME, NS, TXT, DNAME]
string   $mParameter   parameter value
int   $mTTL   TTL value, default value 86400

[ Top ]

method add_zone_backend [line 304]

void add_zone_backend( $mDomain, $mIP)



Tags:

access:  public


Parameters:

   $mDomain  
   $mIP  

[ Top ]

method domain_hosted [line 317]

void domain_hosted( $mDomain, $mRestriction)



Tags:

access:  public


Parameters:

   $mDomain  
   $mRestriction  

[ Top ]

method get_all_domains [line 68]

array get_all_domains( String 0)

array get_all_domains (string)

Fetches all domains across all servers




Tags:

access:  public


Parameters:

String   0   filter

[ Top ]

method get_records_by_rr [line 154]

array get_records_by_rr( string $mRR, [ $mDomain = NULL])

array get_records_by_rr (string) get_zone_information



Tags:

return:  of records matching the specificed resource record
access:  public


Parameters:

string   $mRR   resource record type, valid types [MX, A, AAAA, CNAME, DNAME, TXT, SRV]
   $mDomain  

[ Top ]

method get_whois_record [line 95]

string get_whois_record( string $mDomain)

string get_whois_record (string)

Returns the whois data for a given domain through a TCP connection on port 53.




Tags:

return:  whois data
throws:  ArgumentError invalid domain name passed
privilege:  PRIVILEGE_ALL
throws:  FileError Whois PEAR module not found
throws:  SocketError for whatever reason, the whois lookup failed
access:  public


Parameters:

string   $mDomain   domain name to look up the whois record for

[ Top ]

method get_zone_information [line 120]

array get_zone_information( [ $mDomain = NULL])

array get_zone_information (string)

Reads zone information for a given domain on the nameservers. For security purposes, this just binds to the main domain of the account. TODO: Add alias support




Tags:

access:  public


Parameters:

   $mDomain  

[ Top ]

method record_exists [line 218]

void record_exists( $mName, [ $mRR = 'ANY'], [ $mParameter = NULL])



Tags:

access:  public


Parameters:

   $mName  
   $mRR  
   $mParameter  

[ Top ]

method remove_record [line 185]

bool remove_record( $mZone, string $mName, string $mRR, [ $mData = NULL], string $mAux)

bool remove_record (string, string) Removes a record from a zone.



Tags:

return:  operation completed successfully or not
access:  public


Parameters:

string   $mName   name of the record
string   $mRR   resource record type, possible values: [MX, TXT, A, AAAA, NS, CNAME, DNAME, SRV]
string   $mAux   record context
   $mZone  
   $mData  

[ Top ]

method remove_zone_backend [line 313]

void remove_zone_backend( $mDomain)



Tags:

access:  public


Parameters:

   $mDomain  

[ Top ]


Documentation generated on Sat, 05 Jul 2008 04:00:35 -0400 by phpDocumentor 1.4.0