Deamon starts, but DNS updates fail when database.storage is invalid
I'm using knotd (Knot DNS), version 3.0.4 from Ubuntu.
I spent some time determining that DNS updates fail without giving any clues in the logs as to why when I use the following config:
database: storage: "/var/lib/knot/non_existent_dir"
template:
- id: default storage: "/var/lib/knot/zones"
zone:
- domain: example.com. file: example.com acl: [address_rule, update_rule] serial-policy: increment
The first storage definition points to a non existing file. The second one is correct.
I would expect the daemon to not start when given a configuration as broken as the one above. Instead it starts, but DNS updates won't work (ACL is OK) - I got no clue as to why the update failed from the logs (info), just that the update failed.
This is not a huge problem, but it was difficult to solve for me from the logs produced by the daemon. :)