12.2. Supermaster automatic provisioning of slaves

PDNS can recognize so called 'supermasters'. A supermaster is a host which is master for domains and for which we are to be a slave. When a master (re)loads a domain, it sends out a notification to its slaves. Normally, such a notification is only accepted if PDNS already knows that it is a slave for a domain.

However, a notification from a supermaster carries more persuasion. When PDNS determines that a notification comes from a supermaster and it is is bonafide, PDNS can provision the domain automatically, and configure itself as a slave for that zone.

To enable this feature, a backend needs to know about the IP address of the supermaster, and how PDNS will be listed in the set of NS records remotely, and the 'account' name of your supermaster. There is no need to fill this out but it does help keep track of where a domain comes from.

To enable this feature in the Generic PostgreSQL backend, issue the following:

	  create table supermasters (ip VARCHAR(25), nameserver VARCHAR(255), account VARCHAR(40));
	  GRANT SELECT ON supermasters TO pdns;
	  GRANT ALL ON domains TO pdns;
	  GRANT ALL ON domains_id_seq TO pdns;
	

To configure a supermaster with IP address 10.0.0.11 which lists this installation as 'autoslave.powerdns.com', issue the following:

	  insert into supermasters ('10.0.0.11','autoslave.powerdns.com','internal');
	
From now on, valid notifies from 10.0.0.11 that list a NS record containing 'autoslave.powerdns.com' will lead to the provisioning of a slave domain under the account 'internal'.

WARNING: as of 1.99.9 this feature is new and relatively untested. Only works with the PostgreSQL backend.