OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: rando-p on July 01, 2021, 07:51:09 AM

Title: CLI/API for changing unbound DNS hosts, static maps
Post by: rando-p on July 01, 2021, 07:51:09 AM
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 (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!