SupermasterManager
class SupermasterManager (View source)
Service class for managing PowerDNS supermasters
Methods
Constructor
Add Supermaster
Delete Supermaster
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 Supermaster
Get distinct slave server IP addresses
Validate Account is valid string
Details
__construct(PDO $db, ConfigurationManager $config, DnsBackendProvider|null $backendProvider = null)
Constructor
bool
addSupermaster(string $master_ip, string $ns_name, string $account)
Add Supermaster
Add a trusted supermaster to the global supermasters table
bool
deleteSupermaster(string $master_ip, string $ns_name)
Delete Supermaster
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
bool
updateSupermaster(string $old_master_ip, string $old_ns_name, string $new_master_ip, string $new_ns_name, string $account)
Update Supermaster
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