SupermasterManager
class SupermasterManager (View source)
Creates, updates and deletes PowerDNS supermasters.
Methods
Constructor
Add a trusted supermaster to the global supermasters table.
Delete a supermaster from the global supermasters table.
Get All Supermasters
Get Supermaster Info from IP
Check if Supermaster IP address exists
Check if Supermaster IP Address and NS Name combo exists
Update a trusted supermaster in the global supermasters table.
Get distinct slave server IP addresses
Validate Account is valid string
Details
__construct(UserLookupInterface $users, ConfigurationInterface $config, SupermasterBackendInterface $backendProvider)
Constructor
SupermasterWriteResult
addSupermaster(string $master_ip, string $ns_name, string $account)
Add a trusted supermaster to the global supermasters table.
SupermasterWriteResult
deleteSupermaster(string $master_ip, string $ns_name)
Delete a supermaster from the global supermasters table.
array
getSupermasters()
Get All Supermasters
Gets an array of arrays of supermaster details
array
getSupermasterInfoFromIp(string $master_ip)
Get Supermaster Info from IP
Retrieve supermaster details from supermaster IP address
bool
supermasterExists(string $master_ip)
Check if Supermaster IP address exists
bool
supermasterIpNameExists(string $master_ip, string $ns_name)
Check if Supermaster IP Address and NS Name combo exists
SupermasterWriteResult
updateSupermaster(string $old_master_ip, string $old_ns_name, string $new_master_ip, string $new_ns_name, string $account)
Update a trusted supermaster in the global supermasters table.
array
getSlaveServerIPs()
Get distinct slave server IP addresses
static bool
validateAccount(string $account)
Validate Account is valid string