PowerDNS Management API/Library

From Linuxnetworks
Jump to: navigation, search

Interfaces

Records

interface PowerDNS_Record_Interface
{
	public function getId();

	public function get( $name );

	public function set( $name, $value );
}

Domains

interface PowerDNS_Domain_Interface
{
	public function getId();

	public function addRecord( PowerDNS_Record_Interface $record );

	public function deleteRecord( $index );

	public function getRecords();
}

Zones

interface PowerDNS_Zone_Interface
{
	public function getId();

	public function get( $name );

	public function set( $name, $value );
}

Manager

interface PowerDNS_Manager_Interface
{
	public function createZone();

	public function createDomain();

	public function createRecord( $type );

	public function getRecordTypes();

	public function addZone( PowerDNS_Zone_Interface $zone );

	public function deleteZone( $zoneid );

	public function searchZones( PowerDNS_Criteria_Interface $criteria );

	public function addDomain( $zoneid, PowerDNS_Domain_Interface $domain );

	public function deleteDomain( $zoneid, $domainid );

	public function searchDomains( $zoneid, PowerDNS_Criteria_Interface $criteria );
}