Tested
2.7.0-DEVELOPMENT (amd64)
built on Wed Jun 01 06:12:27 UTC 2022
FreeBSD 12.3-STABLE
DNS resolver still restarts after every "rc.newwanip" no matter whether the interface is selected in the configuration of the DNS Resolver (in/out interface).
I selected only the LAN interface as DNS Resolver (in/out interface).
# Interface IP(s) to bind to
interface: 192.168.20.1
# Outgoing interfaces to be used
outgoing-interface: 192.168.20.1
After, rc.newwanip event on the WAN:
Jun 3 08:52:40 check_reload_status 399 rc.newwanip starting vtnet0
Unbound rebooted.
Jun 3 08:52:40 unbound 30541 [30541:0] info: service stopped (unbound 1.15.0).
Jun 3 08:52:40 unbound 30541 [30541:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting
Jun 3 08:52:40 unbound 30541 [30541:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0
Jun 3 08:52:41 unbound 91463 [91463:0] notice: init module 0: validator
Jun 3 08:52:41 unbound 91463 [91463:0] notice: init module 1: iterator
Jun 3 08:52:41 unbound 91463 [91463:0] info: start of service (unbound 1.15.0).
Please check.