Private Method Details |
AddMXRecord |
private string AddMXRecord( string $mx, int $pref )
|
|
Add an MX record to the current zone
|
Parameter |
|
|
|
int |
$pref |
|
|
preference value for this MX |
|
Returns |
string text of result (Adding MX Record... Ok) |
|
AddNSRecord |
private string AddNSRecord( string $ns )
|
|
Add an NS record to the current zone
|
Parameter |
|
|
Returns |
string text of result (Adding NS Record... Ok) |
|
AddARecord |
private string AddARecord( string $a, string $aname )
|
|
Add an A record to the current zone
|
Parameter |
|
|
|
string |
$aname |
|
|
name of A record |
|
Returns |
string text of result (Adding A Record... Ok) |
|
AddCNAMERecord |
private string AddCNAMERecord( string $cname, string $cnamea )
|
|
Add an CNAME record to the current zone
|
Parameter |
|
string |
$cname |
|
|
name of CNAME record |
|
|
string |
$cnamea |
|
|
record pointed by this CNAME record |
|
Returns |
string text of result (Adding CNAME Record... Ok) |
|
AddSUBNSRecord |
private string AddSUBNSRecord( string $subns, string $subnsa )
|
|
Add a zone delegation to the current zone
|
Parameter |
|
string |
$subns |
|
|
name of subzone |
|
|
string |
$subnsa |
|
|
name of NS server |
|
Returns |
string text of result (Adding zone NS Record... Ok) |
|
AddAZONERecord |
private string AddAZONERecord( string $azone )
|
|
Add an A record to for the top of the current zone
|
Parameter |
|
string |
$azone |
|
|
ip of the zone's A record |
|
Returns |
string text of result (Adding A zone Record... Ok) |
|
UpdateSOA |
private string UpdateSOA( string $xferip )
|
|
Update SOA of current zone
|
Parameter |
|
string |
$xferip |
|
|
IP(s) allowed to do zone transfers |
|
Returns |
string 1 if success, 0 if DB error, string of error else |
|
RetrieveRecords |
private int RetrieveRecords( string $type, array &$arraytofill )
|
|
Fill in given array with all records of type $type for current zone
|
Parameter |
|
string |
$type |
|
|
type of record to be retrieved |
|
|
array |
&$arraytofill |
|
|
reference of array to be filled with records |
|
Returns |
int 1 if success, 0 if error |
|
RetrieveMultiRecords |
private int RetrieveMultiRecords( string $type, array &$array1tofill, array &$array2tofill )
|
|
Same as RetrieveRecords, but used when a type of record might
have multiple similar entries (A for round robin, NS, etc...)Results are stored in two separate arrays
|
Parameter |
|
string |
$type |
|
|
type of record to be retrieved |
|
|
array |
&$array1tofill |
|
|
reference of array to be filled with first record element |
|
|
array |
&$array2tofill |
|
|
reference of array to be filled with second record element |
|
Returns |
int 1 if success, 0 if error |
|
generateConfigFile |
private int generateConfigFile( )
|
|
Generate a temporary config file in /tmp
|
Returns |
int 1 |
|