On Sat 12 Aug 2023, WATANABE Takeo wrote:
> 
> I am using nsd, which runs by default on OpenBSD 7.2 amd64.
> To update the zone file after changes have been made.
> 
> # rcctl reload nsd
> 
> would result in
> 
> nsd(failed)
> 
> and cannot be updated.
> 
> As far as I could find, restarting the host seems to be
> the only way to update the zone information.
> 
> How can I use the rcctl command to reload the zo information,
> as I am having trouble dealing with this?
> 
> -----
> # more rc.conf.local
> 
> nsd_flags=
> smtpd_flags=NO
> sshd_flags=NO
> unbound_flags=

No solution, but I am experiencing the same issue on OpenBSD 7.3. You
do not need a restart though, you can just dig out the NSD PIDs with
grep(1) and ps(1); then pass them to kill(1) and then use rcctl(8). Not
pretty, but it works as I have not had the time to dig into what the
underlying problem is.

etc/rc.conf.local:

        nsd_flags=

var/nsd/etc/nsd.conf:

        server:
                hide-version: yes
                verbosity: 1
                database: ""

        remote-control:
                control-enable: yes
                control-interface: /var/run/nsd.sock

        ---8<---

Reply via email to