]> git.ipfire.org Git - thirdparty/bind9.git/commit
parse user configuration before exclusive mode
authorColin Vidal <colin@isc.org>
Tue, 22 Apr 2025 11:46:47 +0000 (13:46 +0200)
committerEvan Hunt <each@isc.org>
Mon, 23 Jun 2025 17:35:31 +0000 (10:35 -0700)
commitd7de2ba08477c97e64c00bfffe49be24df077860
treeadcc35ba4a1c512643bfd042868b84fdcb1fc2d6
parent8685ebdb9920dfc2a5612d874cf2040d3592a0b1
parse user configuration before exclusive mode

The configuration file was parsed when named was in exclusive
(i.e. single-threaded) mode and unable to answer queries. Because
the parsing is a self-contained operation, it is now done before
named enters exclusive mode.

This reduces the amount of time named can't answer queries when
reloading the configuration when the configuration file is large.
Note that exclusive mode is still used for applying the
configuration changes to the server.

Also, simplify the configuration logic by parsing the built-in
configuration only once at server start time.
bin/named/config.c
bin/named/include/named/config.h
bin/named/server.c