3 fdbb3c73 2025-06-03 xs service_unbound() {
4 fdbb3c73 2025-06-03 xs if node unwind.conf; then
5 fdbb3c73 2025-06-03 xs rcctl disable unbound
9 fdbb3c73 2025-06-03 xs if node unbound/etc/unbound.conf; then
10 fdbb3c73 2025-06-03 xs rcctl enable unbound
11 fdbb3c73 2025-06-03 xs unbound-anchor
12 fdbb3c73 2025-06-03 xs rcctl set unbound timeout 300
13 fdbb3c73 2025-06-03 xs groupinstall -m 664 -o _unbound:_unbound named.root /var/unbound/db
14 fdbb3c73 2025-06-03 xs nodeinstall -m 644 -o root:wheel unbound/etc/unbound.conf /var/unbound/etc &&
15 fdbb3c73 2025-06-03 xs unbound-checkconf && rcctl restart unbound
19 fdbb3c73 2025-06-03 xs service_unbound_root_hints_update() {
20 fdbb3c73 2025-06-03 xs groupinstall -m 755 -o root:bin unbound-root-hints-update /usr/local/bin && unbound-root-hints-update
21 fdbb3c73 2025-06-03 xs crontab -u _unbound - <<-..
25 fdbb3c73 2025-06-03 xs service_unbound_reload() {
26 fdbb3c73 2025-06-03 xs if node unbound/etc/unbound.conf; then
27 fdbb3c73 2025-06-03 xs nodeinstall -m 644 -o root:wheel unbound/etc/unbound.conf /var/unbound/etc &&
28 fdbb3c73 2025-06-03 xs unbound-checkconf && rcctl reload unbound
32 fdbb3c73 2025-06-03 xs state_check_unbound() {
33 fdbb3c73 2025-06-03 xs rcctl check unbound
36 fdbb3c73 2025-06-03 xs state_unbound_control_stats() {
37 fdbb3c73 2025-06-03 xs unbound-control status