powerdns

Bibaros
Messages : 19
Inscription : 29 janvier 2016, 15:51

powerdns

Message par Bibaros » 21 mars 2019, 22:30

Bonjour
Alors j'essaye de configurer deux serveurs DNS l'un master et l'autre slave en assurant un transfert des zones basé sur axfr , ma cnfiguration est comme suit :
OS CentOS 7 minimal
Pwerdns 4.2
Configuration Slave ns2//192.168.1.99 :

daemon=yes
guardian=no
launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=mypassword
gmysql-dbname=powerdns
gmysql-dnssec=yes
local-address=0.0.0.0
local-ipv6=
local-port=53
log-dns-details=yes
log-dns-queries=yes
log-timestamp=yes
loglevel=4
setgid=pdns
setuid=pdns
#allow-notify-from=192.168.1.99
slave=yes
disable-axfr=yes
disable-tcp=no
master=no
query-local-address=192.168.1.99,127.0.0.1
allow-notify-from=0.0.0.0/0

Configuration master ns1//192.168.1.99:

allow-axfr-ips=192.168.1.98,192.168.1.0/24
master=yes
slave=no
also-notify=192.168.1.98
disable-axfr=no
soa-minimum-ttl=3600
soa-refresh-default=10800
soa-retry-default=3600
disable-axfr=no
daemon=yes
guardian=no
launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=mypassword
gmysql-dbname=powerdns
gmysql-dnssec=yes
local-address=0.0.0.0
local-ipv6=
local-port=53
log-dns-details=yes
log-dns-queries=yes
log-timestamp=yes
loglevel=4
setgid=pdns
setuid=pdns
#also-notify=192.168.1.98
allow-notify-from=0.0.0.0/0

table supermasters :

select * from supermasters ;
+--------------+------------+---------+
| ip | nameserver | account |
+--------------+------------+---------+
| 192.168.1.99 | ns2 | admin |
+--------------+------------+---------+

Message d'erreur :

Mar 21 21:08:46 ns1 pdns_server: Unable to queue notification of domain 'exemple.com': nameservers do not resolve!
Mar 21 21:08:46 ns1 pdns_server: Queued also-notification of domain 'exemple.com' to 192.168.1.98:53
Mar 21 21:08:46 ns1 pdns_server: Error sending data to pdns_control: Broken pipe
Mar 21 21:08:48 ns1 pdns_server: Received unsuccessful notification report for 'exemple.com' from 192.168.1.98:53, error: Query Refused
Mar 21 21:08:48 ns1 pdns_server: Removed from notification list: 'exemple.com' to 192.168.1.98:53 Query Refused

PS. j'ai désactivé SElinux et firewalld sur les deux machines
Cordialement,

Bibaros
Messages : 19
Inscription : 29 janvier 2016, 15:51

Re: powerdns

Message par Bibaros » 25 mars 2019, 10:20

Bonjour
j'ai un nouveau message d'erreur quelqu'un a une idée SVP ?

pdns_server: 1 domain for which we are master needs notifications
Mar 25 09:16:41 ns1 pdns_server: Request to queue notification for domain 'master.tn' was processed, but no valid nameservers or ALSO-NOTIFYs found. Not notifying!


Bibaros
Messages : 19
Inscription : 29 janvier 2016, 15:51

Re: powerdns

Message par Bibaros » 26 mars 2019, 16:08

Si j'ajoute une zone slave la communication master/slave se déroule sans problème voilà le log

AXFR of domain 'slave23.tn' initiated by @IPslave:34396
Mar 26 14:53:58 ns1 pdns_server: AXFR of domain 'slave23.tn' allowed: client IP @IPslave:34396 is in allow-axfr-ips
Mar 26 14:53:58 ns1 pdns_server: AXFR of domain 'slave23.tn' to @IPslave:34396 finished

une idée SVP ??

Répondre