CLI/API for changing unbound DNS hosts, static maps

Started by rando-p, July 01, 2021, 07:51:09 AM

Previous topic - Next topic
Hi, is there a CLI or API for changing unbound DNS configuration to add/remove host entries and to add/remove DHCP static maps? The official API at https://docs.opnsense.org/development/api/core/unbound.html doesn't seem to cover these features.

I see the relevant config is stored in /conf/config.xml, but even if I manually edited it I'm not sure how to deploy the config to unbound's own config files and trigger a reload.

Thanks!