High-performance authoritative DNS server. Please support the development https://donations.nic.cz/donate/?project=knot-dns
Step #4: configure: error: ***
Step #4: *** libev4 was not found.
$ git diff
diff --git a/projects/knot-dns/Dockerfile b/projects/knot-dns/Dockerfile
index 22b1039..4977181 100644
--- a/projects/knot-dns/Dockerfile
+++ b/projects/knot-dns/Dockerfile
@@ -28,7 +28,9 @@ RUN apt-get update && apt-get install -y \
make \
pkg-config \
texinfo \
- wget
+ wget \
+ libev4 \
+ libev-dev
ENV GNULIB_TOOL $SRC/gnulib/gnulib-tool
RUN git clone git://git.savannah.gnu.org/gnulib.git
Granted.
Config:
server:
identity: "my-nameserver"
nsid: "my-nameserver"
rundir: "/run/knot"
user: knot:knot
listen: [ 0.0.0.0@53 ]
log:
- target: syslog
any: info
remote:
- id: slave0
address: 1.2.3.4
- id: slave1
address: 2.3.4.5
acl:
- id: acl_master
address: [ 1.2.3.4, 2.3.4.5, ... ]
action: transfer
template:
- id: default
semantic-checks: on
storage: "/var/lib/knot/data"
file: "%s.zone"
acl: acl_master
zonefile-sync: -1
zonefile-load: difference
journal-content: changes
zone:
- domain: example.com
- domain: example.net
- ...
Logs:
systemd[1]: Starting Knot DNS server...
knotc[18493]: Configuration is valid
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-cookies', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-dnsproxy', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-dnstap', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-geoip', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-noudp', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-onlinesign', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-queryacl', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-rrl', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-stats', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-synthrecord', loaded static
knotd[18495]: 2020-02-03T23:55:32 debug: module 'mod-whoami', loaded static
knotd[18495]: 2020-02-03T23:55:32 info: Knot DNS 2.9.2 starting
knotd[18495]: 2020-02-03T23:55:32 info: loaded configuration database '/var/lib/knot/confdb'
knotd[18495]: 2020-02-03T23:55:32 info: using reuseport for UDP
knotd[18495]: 2020-02-03T23:55:32 info: loading 0 zones
knotd[18495]: 2020-02-03T23:55:32 warning: no zones loaded
knotd[18495]: 2020-02-03T23:55:32 info: starting server
knotd[18495]: 2020-02-03T23:55:32 info: server started in the foreground, PID 18495
systemd[1]: Started Knot DNS server.
knotd[18495]: 2020-02-03T23:55:32 info: control, binding to '/run/knot/knot.sock'
At this point, no TCP or UDP socket is open.
systemd[1]: Starting Knot DNS server...
knotc[5179]: Configuration is valid
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-cookies', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-dnsproxy', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-dnstap', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-geoip', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-noudp', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-onlinesign', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-queryacl', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-rrl', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-stats', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-synthrecord', loaded static
knotd[5180]: 2020-02-04T20:51:19 debug: module 'mod-whoami', loaded static
systemd[1]: Started Knot DNS server.
systemd[1]: Starting Knot DNS server...
knotc[3757]: Configuration is valid
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-cookies', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-dnsproxy', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-dnstap', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-geoip', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-noudp', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-onlinesign', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-queryacl', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-rrl', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-stats', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-synthrecord', loaded static
knotd[3758]: 2020-02-04T19:58:23 debug: module 'mod-whoami', loaded static
knotd[3758]: 2020-02-04T19:58:23 info: Knot DNS 2.9.2 starting
knotd[3758]: 2020-02-04T19:58:23 info: loaded configuration database '/var/lib/knot/confdb'
knotd[3758]: 2020-02-04T19:58:23 info: using reuseport for UDP
knotd[3758]: 2020-02-04T19:58:23 info: binding to interface 0.0.0.0@53
knotd[3758]: 2020-02-04T19:58:23 info: binding to interface ::@53
knotd[3758]: 2020-02-04T19:58:23 info: loading 1 zones
knotd[3758]: 2020-02-04T19:58:23 info: [my-zone.local.] zone will be loaded
knotd[3758]: 2020-02-04T19:58:23 info: starting server
knotd[3758]: error: [my-zone.local.] failed to parse zone file (not exists)
knotd[3758]: 2020-02-04T19:58:23 error: [my-zone.local.] failed to parse zone file (not exists)
knotd[3758]: error: [my-zone.local.] zone event 'load' failed (not exists)
# ls -l /var/lib/knot/confdb
/bin/ls: cannot access '/var/lib/knot/confdb': No such file or directory
This my-zone.local was something I tried to add via knotc, but it doesn't exist.