after add -4 this will load only one time ;-)
Am 11.07.2022 um 21:01 schrieb Maurizio Caloro:
why this will load the rndc.key twice ?
# cat /lib/systemd/system/named.service
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target
[Service]
EnvironmentFile=-/etc/default/named
ExecStart=/usr/sbin/named -f $OPTIONS
# ExecReload=/usr/sbin/rndc reload
# ExecStop=/usr/sbin/rndc stop
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=bind9.service
--
Jul 11 20:56:47 Star named[3129]: *configuring command channel from
'/etc/bind/rndc.key'*
Jul 11 20:56:47 Star named[3129]: command channel listening on
127.0.0.1#953
Jul 11 20:56:47 Star named[3129]: *configuring command channel from
'/etc/bind/rndc.key'*
Jul 11 20:56:47 Star named[3129]: couldn't add command channel
::1#953: address not available
--
key "rndc-key" {
algorithm hmac-sha256;
secret "lala !";
};