[Pdns-users] PowerDNS Master / Slave

Stefan Schmidt zaphodb at zaphods.net
Wed Aug 3 14:49:27 UTC 2011

Hi There,

On Wed, Aug 3, 2011 at 4:11 PM, Support Desk <support.desk.ipg at gmail.com> wrote:
> I am looking into deploying two powerdns Servers on my Network. I would like
> both to use a mysql cluster that I have setup as their backend. My question
> is, if both servers are letting the MySql cluster do the replication, should
> they both be configured as Masters?

If the backend - in this case mysql - is doing the replication itself
we are calling it 'Native' mode.
You would only need to set master=yes in pdns.conf in order to enable
your name servers sending out DNS NOTIFY messages to all servers
mentioned as NS records for a zone that has changed recently. In Mysql
PowerDNS will then update the last notified_serial column of the
domains table in your database.
slave=yes will enable PowerDNS to listen to such NOTIFIES and if the
domain is of type 'SLAVE' it will then try to AXFR the zone and
subsequently update all entries in the records table.
Thus enabling either master or slave bears a slight risk that both of
your PowerDNS servers will try to update the same column at once.
I am not entirely sure how a MySQL cluster would handle this kind of
deadlock. Gracefully i'd hope.


More information about the Pdns-users mailing list