Sure ! "/cf/named/etc/namedb/rndc.conf" - is created:
key "rndc-key" {
algorithm hmac-sha256;
secret "something/andosmethjingmore=";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 8953;
};
The binary of rndc (/usr/local/sbin/rndc) is pre-built to use a different rndc.conf !
[2.4.5-RELEASE][root@pftest.home]/root: strings /usr/local/sbin/rndc | fgrep rndc.conf
/usr/local/etc/namedb/rndc.conf
[2.4.5-RELEASE][root@pftest.home]/root:
So - a clean install of bind, running rndc with just a "status" argument results in an error:
[2.4.5-RELEASE][root@pftest.home]/root: rndc status
rndc: neither /usr/local/etc/namedb/rndc.conf nor /usr/local/etc/namedb/rndc.key was found
[2.4.5-RELEASE][root@pftest.home]/root: rndc -c /cf/named/etc/namedb/rndc.conf status
version: BIND 9.14.12 (Stable Release) <id:f3dc26e>
running on pftest.home: FreeBSD amd64 11.3-STABLE FreeBSD 11.3-STABLE #243 abf8cba50ce(RELENG_2_4_5): Tue Jun 2 17:53:37 EDT 2020 root@buildbot1-nyi.netgate.com:/build/ce-crossbuild-245/obj/amd64/YNx4Qq3j/build/ce-crossbuild-245/sources/FreeBSD-src/sys/pfSense
boot time: Wed, 12 Aug 2020 07:06:40 GMT
last configured: Wed, 12 Aug 2020 07:06:41 GMT
configuration file: /etc/namedb/named.conf (/cf/named//etc/namedb/named.conf)
...
server is up and running
[2.4.5-RELEASE][root@pftest.home]/root:
Fundamentally, rndc is unaware of the configuration root "BIND_LOCALBASE" and thinks bind configuration is installed under "/".
[ work around is for me to not be lazy and use "-c" argument to rndc, or, create a symlink for rndc.conf ]
cheers!