Better detection of BIND 9
The BIND 9 configuration is detected based on a fixed list of potential paths. In the Kea-part, we detect the configuration based on the process arguments. It should be a similar solution or possible to provide a custom path.
From [stork-users] Stork Agent: Specify location for named.conf (2022-08-01):
OS: Openbsd 7.1 Version: 1.5.0
Hello everyone,
When I start the stork agent
# ./backend/cmd/stork-agent/stork-agent --listen-stork-only
It complains about not finding named.conf
WARN[2022-08-01 20:39:58] bind9.go:376 cannot find config file for BIND 9
I looked at other messages posted about stork and saw that I was trying to find this file at /etc/bind/named.conf So I created an empty file and I have the confirmation now
WARN[2022-08-01 20:53:51] bind9.go:406 found BIND 9 config file (/etc/bind/named.conf) but cannot parse controls clause
- How can I tell stork agent where to find named.conf ? On Openbsd it's in /var/named/etc/named.conf
- What do you think about modifying the source code so that when the file is not found we have a hint where it was searching Instead of
WARN[2022-08-01 20:39:58] bind9.go:376 cannot find config file for BIND 9
Should beWARN[2022-08-01 20:39:58] bind9.go:376 cannot find /etc/bind/named.conf for BIND 9