Here is my ns2 named.conf
named.conf.options:
directslave.conf
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local"; <---old file for zones - should i comment it out?
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/directslave.inc"; <--- file for zones
named.conf.options:
acl trusted { 127.0.0.1; 46.xx.xx.xx; 172.xx.xx.xx; };
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { no; };
notify no;
also-notify { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
allow-recursion { trusted; };
};
directslave.conf
background 1
host *
port 2222
sslport 2224
ssl off
ssl_cert /usr/local/directslave/ssl/fullchain.pem
ssl_key /usr/local/directslave/ssl/privkey.pem
cookie_sess_id DS_SESSID
cookie_auth_key Change_this_line_to_something_long_&_secure
debug 0
uid 53
gid 53
pid /usr/local/directslave/run/directslave.pid
access_log /usr/local/directslave/log/access.log
error_log /usr/local/directslave/log/error.log
action_log /usr/local/directslave/log/action.log
named_workdir /var/cache/bind
named_conf /etc/bind/directslave.inc
retry_time 1200
rndc_path /usr/sbin/rndc
named_format text
authfile /usr/local/directslave/etc/passwd