OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • CLI/API for changing unbound DNS hosts, static maps
« previous next »
  • Print
Pages: [1]

Author Topic: CLI/API for changing unbound DNS hosts, static maps  (Read 1436 times)

rando-p

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
CLI/API for changing unbound DNS hosts, static maps
« 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 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!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • CLI/API for changing unbound DNS hosts, static maps
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2