[Pdns-users] Multiple masters are added in Supermaster configuration

Javier Narváez jnarvaez at loading.es
Wed Jul 20 08:14:08 UTC 2016


Hi! 

I'm upgrading from PowerDNS 2.9.22 (Centos 5) to PowerDNS 3.4.8 (Centos 7). 

I have a several supermasters servers (bind) that automatically create zones on 3 PowerDNS slave servers. 

With PowerDNS 2.9.22 when I a domain is added to a supermaster bind server, that domain is added to the 3 PowerDNS slave servers with the IP of the supermaster: 

mysql> SELECT `id`,`name`,`master` FROM domains WHERE `type`='SLAVE' AND `name`='aaaaaaaaaaaa999.com'; 
+-------+---------------------+-----------------+ 
| id | name | master | 
+-------+---------------------+-----------------+ 
| 48773 | aaaaaaaaaaaa999.com | 195.xxx.255.153 | 
+-------+---------------------+-----------------+ 

With PowerDNS 3.4.8, the domain is added with the full list of supermasters listed in PowerDNS supermasters table: 
MariaDB [powerdns]> SELECT `id`,`name`,`master` FROM domains WHERE `type`='SLAVE' AND `name`='aaaaaaaaaaaa999.com'; 
+-------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+ 
| id | name | master | 
+-------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+ 
| 48772 | aaaaaaaaaaaa999.com | 185.50.xxx.146, 185.50.xxx.147, 185.50.xxx.148, 185.50.xxx.149, 185.50.xxx.150, 185.50.xxx.151, 185.50.xxx.152, 185.50.xxx.160, 185.50.x | 
+-------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+ 

And this is the line in the logs that adds the domain to PowerDNS: 
Jul 20 08:50:53 ns2 pdns[736]: Created new slave zone 'aaaaaaaaaaaa999.com' from supermaster 195.xxx.255.153 

Any idea how to solve the problem? 

This is my configuration: 

[root at ns2 ~]# cat /etc/pdns/pdns.conf 
setuid=pdns 
setgid=pdns 

launch=gmysql 
gmysql-host=127.0.0.1 
gmysql-user=power_admin 
gmysql-password=xxxxx 
gmysql-dbname=powerdns 

allow-axfr-ips=xxxxx 
slave=yes 

allow-recursion=127.0.0.1, ::1, xxxxxxxxx 
recursor=127.0.0.1:5300 

local-ipv6=xxxxxxxx 

Thank you in advance. 

Kind regards, 
Javi 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20160720/3d210a2e/attachment.html>


More information about the Pdns-users mailing list