Configuration file ordering
Knot seems very picky about in which order the configuration statements are included. Is there any specific reason the entire configuration is not read first, then parsed as a whole?
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Knot seems very picky about in which order the configuration statements are included. Is there any specific reason the entire configuration is not read first, then parsed as a whole?
The reason is that it's implemented this way :-) Configuration file is processed directly when parsing in order to be efficient.
What exactly is a problem for you?
A reliable section ordering can be found at https://gitlab.nic.cz/knot/knot-dns/-/blob/master/src/knot/conf/schema.c#L482
When teaching Knot to first time users (like today at .DK), this is one of the first things that hit them. I've learned to live with it :-)
closed