falkit
Goto Top

PowerDNS Nameserver Slave synchronisiert nicht

Hi zusammen,
ich habe testweise zwei virtuelle Debian Wheezy Maschinen aufgesetzt und PowerDNS installiert (dazu habe ich mir diese beiden Howtos angesehen: http://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-po ... http://stacksetup.com/DNS/PowerDNSDebian).

Auf dem Master läuft mittlerweile alles so wie es soll und auch der Slave spuckt bei einem /etc/init.d/pdns monitor keine Fehler (mehr) aus.

Allerdings werden die zum test eingetragenen Domains nicht auf den Slave übertragen. Was mich außerdem skeptisch macht ist dass die mySQL Datenbank auf dem Slave nur die Tabellen domains, records & supermasters beinhaltet.
Master-IP xxx.xxx.xxx.43
Master-Domain ns3.xxxxx.info
Slave-IP xxx.xxx.xxx.44
Slave-Domain ns4.xxxxx.info
Hier die Config Files von Master:

pdns.conf
allow-recursion=xxx.xxx.xxx.44
allow-axfr-ips=xxx.xxx.xxx.44
chroot=/var/spool/powerdns
config-dir=/etc/powerdns
daemon=yes
disable-axfr=no
disable-tcp=no
guardian=yes
launch=gmysql
lazy-recursion=yes
local-address=xxx.xxx.xxx.43
#local-ipv6=xxxx::xxxx::xxxx::e328/64
#query-local-address6=xxxx::xxxx::xxx::fe73:e328/64
#aaaa-additional-processing=yes
local-port=53
log-dns-details=on
log-failed-updates=on
loglevel=3
module-dir=/usr/lib/powerdns
master=yes
slave=no
recursor=127.0.0.1
setgid=pdns
setuid=pdns
socket-dir=/var/run
version-string=powerdns
include=/etc/powerdns/pdns.d
recursor.conf
allow-from=xxx.xxx.xxx.44
dont-query=
local-address=127.0.0.1
local-port=53
quiet=yes
setgid=pdns
setuid=pdns
pdns.local
gmysql-host=127.0.0.1
gmysql-user=pdns
gmysql-password=MEIN-SQL-PASSWORT
gmysql-dbname=powerdns
gmysql-dnssec=yes

Config Files vom Slave:

pdns.conf
allow-recursion=xxx.xxx.xxx.44,xxx.xxx.xxx.43
chroot=/var/spool/powerdns
config-dir=/etc/powerdns
daemon=yes
disable-axfr=yes
disable-tcp=no
guardian=yes
launch=gmysql
lazy-recursion=yes
local-address=xxx.xxx.xxx.44
#local-ipv6=xxxx::xxxx::xxx::fe73:e328/64
local-port=53
module-dir=/usr/lib/powerdns
recursor=127.0.0.1
setgid=pdns
setuid=pdns
master=no
slave=yes
slave-cycle-interval=60
socket-dir=/var/run
version-string=powerdns
include=/etc/powerdns/pdns.d
recursor.conf
allow-from=xxx.xxx.xxx.44
dont-query=
local-address=127.0.0.1
local-port=53
quiet=yes
setgid=pdns
setuid=pdns
pdns.local
gmysql-host=127.0.0.1
gmysql-user=pdns
gmysql-password=MEIN-SQL-PASSWORT
gmysql-dbname=powerdns
gmysql-dnssec=yes

/etc/init.d/pdns monitor ausgabe Master:
Sep 11 15:30:02 Reading random entropy from '/dev/urandom'  
Sep 11 15:30:02 This is module gmysqlbackend.so reporting
Sep 11 15:30:02 This is a standalone pdns
Sep 11 15:30:02 UDP server bound to xxx.xxx.xxx.43:53
Sep 11 15:30:02 TCP server bound to xxx.xxx.xxx.43:53
Sep 11 15:30:02 PowerDNS 3.1 (C) 2001-2012 PowerDNS.COM BV (Jan 24 2014, 03:24:15, gcc 4.7.2) starting up
Sep 11 15:30:02 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Sep 11 13:30:02 Chrooted to '/var/spool/powerdns'  
Sep 11 13:30:02 Set effective group id to 107
Sep 11 13:30:02 Set effective user id to 105
Sep 11 13:30:02 DNS Proxy launched, local port 32134, remote 127.0.0.1:53
Sep 11 13:30:02 Creating backend connection for TCP
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 About to create 3 backend threads for UDP
Sep 11 13:30:02 Master/slave communicator launching
Sep 11 13:30:02 gmysql Connection successful
% Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 No new unfresh slave domains, 0 queued for AXFR already
Sep 11 13:30:02 No master domains need notifications
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 gmysql Connection successful
Sep 11 13:30:02 Done launching threads, ready to distribute questions

/etc/init.d/pdns monitor ausgabe Slave:
Sep 11 15:31:24 Reading random entropy from '/dev/urandom'  
Sep 11 15:31:24 This is module gmysqlbackend.so reporting
Sep 11 15:31:24 This is a standalone pdns
Sep 11 15:31:24 UDP server bound to xxx.xxx.xxx.44:53
Sep 11 15:31:24 TCP server bound to xxx.xxx.xxx.44:53
Sep 11 15:31:24 PowerDNS 3.1 (C) 2001-2012 PowerDNS.COM BV (Jan 24 2014, 03:24:15, gcc 4.7.2) starting up
Sep 11 15:31:24 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Sep 11 13:31:24 Chrooted to '/var/spool/powerdns'  
Sep 11 13:31:24 Set effective group id to 107
Sep 11 13:31:24 Set effective user id to 105
Sep 11 13:31:24 DNS Proxy launched, local port 16387, remote 127.0.0.1:53
Sep 11 13:31:24 Creating backend connection for TCP
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 About to create 3 backend threads for UDP
Sep 11 13:31:24 Master/slave communicator launching
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful%
Sep 11 13:31:24 No new unfresh slave domains, 0 queued for AXFR already
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 gmysql Connection successful
Sep 11 13:31:24 Done launching threads, ready to distribute questions

Ich habe nicht wirklich Ahnung, wenn es um Nameserver geht und hoffe daher, dass das Problem ein relativ simples ist.

Vielen Dank schon mal!

Falk


edit:
in der Tabelle supermasters auf dem Slave gibt es einen Eintrag:
ip: xxx.xxx.xxx.43
nameserver: ns4.xxxxx.info
account: ' '

Content-ID: 248936

Url: https://administrator.de/contentid/248936

Ausgedruckt am: 25.11.2024 um 20:11 Uhr

FalkIT
FalkIT 12.09.2014 um 14:35:09 Uhr
Goto Top
Lösung:
In der Datenbank auf dem Slave musste ich in der Tabelle domains die Domains eintragen, die er übernehmen soll.
Ich hatte erwartet, dass er, wenn man ihm nichts andere sagt alle Domains automatisch synchronisiert.