interface SupermasterBackendInterface (View source)

Supermaster (autoprimary) reads and writes against the DNS backend.

Methods

bool
addSupermaster(string $masterIp, string $nsName, string $account)

Add a supermaster (autoprimary).

bool
deleteSupermaster(string $masterIp, string $nsName)

Delete a supermaster (autoprimary).

array
getSupermasters()

Get all supermasters.

bool
updateSupermaster(string $oldMasterIp, string $oldNsName, string $newMasterIp, string $newNsName, string $account)

Update a supermaster.

Details

bool addSupermaster(string $masterIp, string $nsName, string $account)

Add a supermaster (autoprimary).

Parameters

string $masterIp

Supermaster IP address

string $nsName

Nameserver hostname

string $account

Account name

Return Value

bool

bool deleteSupermaster(string $masterIp, string $nsName)

Delete a supermaster (autoprimary).

Parameters

string $masterIp

Supermaster IP address

string $nsName

Nameserver hostname

Return Value

bool

array getSupermasters()

Get all supermasters.

Return Value

array

Array of supermaster records

bool updateSupermaster(string $oldMasterIp, string $oldNsName, string $newMasterIp, string $newNsName, string $account)

Update a supermaster.

Parameters

string $oldMasterIp

Original IP

string $oldNsName

Original nameserver

string $newMasterIp

New IP

string $newNsName

New nameserver

string $account

Account name

Return Value

bool