[Pdns-users] pdns_control appears with wrong IP on slave - supermaster setup

Konstantin Kletschke konsti at ku-gbr.de
Wed Dec 9 07:56:20 UTC 2015


Hi,

I am trying to initiate a master slave setup. I setup a master and a
slave with the same zone2sql.sql output and set one domain to slave in
the domains table on the slave and inserted a record into supermasters
on the slave.

deadbeef.de has nameservers ns1.cafebabe.de (1.1.1.19) and
ns2.cafebabe.de (2.2.2.2). Both are using mysql backend.

ns1.cafebabe.de is on debian oldstable (3.1-4.1), ns2.cafebabe.de is on 
debian stable (3.4.1-4+deb8u3).

The master has several IP Addresses:
1.1.1.18
1.1.1.19
1.1.1.20

The master is ns1.cafebabe.de - the slave is ns2.cafebabe.de

Master config (I omit stuff like logging setup and such):

allow-axfr-ips=2.2.2.2/32 1.1.1.19/32
disable-axfr=no
local-address=1.1.1.19
master=yes

domains table:

+----+-------------+--------+------------+--------+-----------------+---------+
| id | name        | master | last_check | type   | notified_serial | 
account |
+----+-------------+--------+------------+--------+-----------------+---------+
| 32 | deadbeef.de | NULL   |       NULL | MASTER |      1449513605 | 
NULL    |
+----+-------------+--------+------------+--------+-----------------+---------+

records table:

+-----+-----------+-------------+------+-----------------------------------------------------------------------------+--------+-------+-------------+----------+-----------+------+
| id  | domain_id | name        | type | content                         
                                             | ttl    | prio  | 
change_date | disabled | ordername | auth |
+-----+-----------+-------------+------+-----------------------------------------------------------------------------+--------+-------+-------------+----------+-----------+------+
| 333 |        32 | deadbeef.de | SOA  | ns2.cafebabe.de. 
hostmaster.deadbeef.de. 1449513605 16384 2048 1048576 2560 | 259200 |    
  0 |        NULL |        0 |           |    1 |
| 334 |        32 | deadbeef.de | A    | 1.1.1.20                        
                                             |  86400 |     0 |        
NULL |        0 |           |    1 |
| 336 |        32 | deadbeef.de | MX   | mail.deadbeef.de                
                                             |  86400 | 86400 |        
NULL |        0 |           |    1 |
| 337 |        32 | deadbeef.de | NS   | ns1.cafebabe.de                 
                                             | 259200 |     0 |        
NULL |        0 |           |    1 |
| 338 |        32 | deadbeef.de | NS   | ns2.cafebabe.de                 
                                             | 259200 |     0 |        
NULL |        0 |           |    1 |
+-----+-----------+-------------+------+-----------------------------------------------------------------------------+--------+-------+-------------+----------+-----------+------+


Slave config (I omit stuff like logging setup and such):

allow-dnsupdate-from=1.1.1.19
disable-axfr=no
local-address=2.2.2.2
slave=yes

domains table:

+----+-------------+--------+------------+-------+-----------------+---------+
| id | name        | master | last_check | type  | notified_serial | 
account |
+----+-------------+--------+------------+-------+-----------------+---------+
| 30 | deadbeef.de | NULL   |       NULL | SLAVE |            NULL | 
NULL    |
+----+-------------+--------+------------+-------+-----------------+---------+

supermasters table:

+----------+-----------------+---------+
| ip       | nameserver      | account |
+----------+-----------------+---------+
| 1.1.1.19 | ns1.cafebabe.de | admin   |
+----------+-----------------+---------+


The entries from records table are identical to the master's one.


This setup does not work:

If i enter command "pdns_control notify deadbeef.de" on the master
the slave says "Received NOTIFY for deadbeef.de from 1.1.1.18 which
is not a master".

If I understood correct it is checked for the nameservers in the record
and entry in supermasters. Here 1.1.1.18 will not match. It must not be
used and it is not configured. Why this strange IP?

When I try to fetch on the slave with "pdns_control retrieve
deadbeef.de" the slave says "Domain 'deadbeef.de' is not a slave domain
(or has no master defined)"

What else is wrong in my setup?

Kind Regards and any Help is highly appreciated.

Konstantin Kletschke




More information about the Pdns-users mailing list