Herman Ronk
New Pleskian
I'm trying to set up a slave DNS erver but I keep getting errors when trying to sync to the slave server and the zones are not transfered.
The error on the slave:
The incoming and outgoing ip adresses are correct.
The configuration on the slave (named.conf)
The secret is the same as specified in the slave-dns-manager config example:
And the server is connected correcty according to the webinterface (some logging over there would be nice):
When I check the named.conf file on the Plesk (master) server I see the IP address of the slave in the allowed transfers.
When forcing a resync I see the following in the "/var/log/messages" log:
What could be the problem? The only thing I can think of is the fact that I can't find a rndc.key file on te Plesk (master) server?
The slave is a clean Ubuntu 16.04 LTS server with only Bind running.
Any suggestions about what the problem might be?
The error on the slave:
Code:
21-Oct-2017 14:41:08.329 general: debug 1: zone ***/IN: no database exists yet, requesting AXFR of initial version from ***#53
21-Oct-2017 14:41:08.418 xfer-in: info: transfer of '***/IN' from ***#53: connected using ***#34432
21-Oct-2017 14:41:08.509 xfer-in: error: transfer of '***/IN' from ***#53: failed while receiving responses: SERVFAIL
21-Oct-2017 14:41:08.509 general: debug 1: zone ***/IN: zone transfer finished: SERVFAIL
21-Oct-2017 14:41:08.509 general: debug 1: zone_settimer: zone ***/IN: enter
21-Oct-2017 14:41:08.509 general: debug 1: queue_soa_query: zone ***/IN: enter
21-Oct-2017 14:41:08.509 xfer-in: info: transfer of '***/IN' from ***#53: Transfer status: SERVFAIL
21-Oct-2017 14:41:08.509 xfer-in: info: transfer of '***/IN' from ***#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.090 secs (0 bytes/sec)
21-Oct-2017 14:41:08.737 general: debug 1: soa_query: zone ***/IN: enter
21-Oct-2017 14:41:08.738 general: debug 1: cancel_refresh: zone ***/IN: enter
21-Oct-2017 14:41:08.738 general: debug 1: zone_settimer: zone ***/IN: enter
The incoming and outgoing ip adresses are correct.
The configuration on the slave (named.conf)
Code:
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
listen-on { any; };
listen-on-v6 { any; };
allow-new-zones yes;
};
key "rndc-key-***" {
algorithm hmac-md5;
secret "**";
};
controls {
inet * port 953 allow { ***; ***; 127.0.0.1; } keys { "rndc-key-***"; };
};
logging{
channel simple_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
simple_log;
};
};
The secret is the same as specified in the slave-dns-manager config example:
Code:
/*
Add to named.conf on the remote server (config location depends on the OS of the slave server):
options {
...
allow-new-zones yes;
};
key "rndc-key-***" {
algorithm hmac-md5;
secret "***";
};
controls {
inet * port 953 allow { ***; 127.0.0.1; } keys { "rndc-key-***"; };
};
*/
/*
SYNOPSIS
rndc [-b source-address] [-s server] [-p port] [-y key_id] {command} zone [class [view]]
For example:
rndc -b *** -s *** -p 953 -y rndc-key refresh example.com IN
*/
key "rndc-key" {
algorithm hmac-md5;
secret "***";
};
And the server is connected correcty according to the webinterface (some logging over there would be nice):
When I check the named.conf file on the Plesk (master) server I see the IP address of the slave in the allowed transfers.
When forcing a resync I see the following in the "/var/log/messages" log:
Code:
Oct 21 16:55:36 man named[17744]: reloading configuration succeeded
Oct 21 16:55:36 man named[17744]: reloading zones succeeded
Oct 21 16:55:36 man named[17744]: zone ***/IN: zone serial (1508489703) unchanged. zone may fail to transfer to slaves.
Oct 21 16:55:36 man named[17744]: zone ***/IN: loaded serial 1508489703
Oct 21 16:55:36 man named[17744]: zone ***/IN: sending notifies (serial 1508489703)
Oct 21 16:55:36 man named[17744]: all zones loaded
Oct 21 16:55:36 man named[17744]: running
What could be the problem? The only thing I can think of is the fact that I can't find a rndc.key file on te Plesk (master) server?
The slave is a clean Ubuntu 16.04 LTS server with only Bind running.
Any suggestions about what the problem might be?