[Pdns-users] Supermaster and superslave automatic provisioning

Peter van Dijk peter.van.dijk at netherlabs.nl
Thu May 24 20:41:37 UTC 2012


Hello,

On May 24, 2012, at 17:58 , a b wrote:

> Can anyone tell me why this needs to be  explicitly  set  in  the
> pdns.conf file, when we have a relational database as the backend
> storage and the database contains all  the  information  required
> for pdns_server to know whether he is to be a slave or a master?


One reason is that this supports setups of the following type:
- ns01 is a powerdns machine in slave mode, slaving domains from other machines.
- ns01 stores all slaved zones in a database (MySQL, Oracle, etc.) which is replicated to one or more database slaves
- ns02/ns03 use these database slaves in readonly mode.

In this case, all three name servers see 'type=SLAVE' on many domains in the domains table, but only one of them should actually be slaving.

Kind regards,
-- 
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/




More information about the Pdns-users mailing list