Setting up slave zone (slave DNS server)
I am trying to setup: one dns master server and one dns slave server using knot. But I can't get it work. I hope I can get a help here.
configs
knot.conf in my master server
#:
# This is a sample of a minimal configuration file for Knot DNS.
# For more details, see man 5 knot.conf or refer to the server documentation.
#
server:
# Listen on all configured IPv4 interfaces.
listen: 0.0.0.0@53
# Listen on all configured IPv6 interfaces.
listen: ::@53
# User for running the server.
# user: knot:knot
log:
# Log info and more serious events to syslog.
- target: syslog
any: info
remote:
- id: slave1
address: ip_of_my_slave@53
acl:
- id: slave1_acl
address: ip_of_my_slave
action: transfer
template:
# - id: default
# storage: "/var/lib/knot"
zone:
# # Master zone.
# - domain: example.com
# file: "example.com.zone"
# notify: slave
# acl: acl_slave
# # Slave zone.
# - domain: example.net
# master: master
# acl: acl_master
knot.conf in my slave server
#
# This is a sample of a minimal configuration file for Knot DNS.
# For more details, see man 5 knot.conf or refer to the server documentation.
#
server:
# Listen on all configured IPv4 interfaces.
listen: 0.0.0.0@53
# Listen on all configured IPv6 interfaces.
listen: ::@53
# User for running the server.
# user: knot:knot
log:
# Log info and more serious events to syslog.
- target: syslog
any: info
remote:
- id: master1
address: ip_of_my_master@53
acl:
- id: master1_acl
address: ip_of_my_master
action: notify
template:
# - id: default
# storage: "/var/lib/knot"
zone:
# # Master zone.
# - domain: example.com
# file: "example.com.zone"
# notify: slave
# acl: acl_slave
# # Slave zone.
# - domain: example.net
# master: master
# acl: acl_master
connections
- I can connect from my master to my slave
telnet ip_of_my_slave 53
Trying ip_of_my_slave...
Connected to ip_of_my_slave.
Escape character is '^]'.
^CConnection closed by foreign host.
- I also can connect from my slave to my server.
test : creating zone and config
- in my master
I created a zone namadomain.com
with its config to notify slaves using knotc
- in my slave
But when I do zone-read
in slave server I can't find any zone transferred from master server
Am I missing something?
As I know. I can just setup a slave with the knot.conf as above. and the server will notify/copy the zones and config to the slaves using AXFR without any human intervention? they are just talking each other.
Thank you in advance.