1
Tutorials and FAQs / Re: Automatically create Unbound DNS entries over the API
« on: December 02, 2021, 09:40:46 am »
Good morning,
thank you for your answer mimugmail.
Was afraid so , but the bind module looks a lot better, will discuss this with our firewall department.
Also, maybe it helps someone else, I noticed that in the API documentation section, each controller has a model.xml attached to it which appears to describe the required POST request payloads. Guess XML is required interally by OPNsense, for documentation purposes though it is a little confusing that the API payloads are supposed to be in JSON and the explaination is in XML, potentially requiring a user to try out what works or not. JSON examples would help inexperienced users.
Again, thanks for your fast help
thank you for your answer mimugmail.
Unbound is not API enabled, you could do this with bind plugin
Was afraid so , but the bind module looks a lot better, will discuss this with our firewall department.
Also, maybe it helps someone else, I noticed that in the API documentation section, each controller has a model.xml attached to it which appears to describe the required POST request payloads. Guess XML is required interally by OPNsense, for documentation purposes though it is a little confusing that the API payloads are supposed to be in JSON and the explaination is in XML, potentially requiring a user to try out what works or not. JSON examples would help inexperienced users.
Again, thanks for your fast help