1
23.7 Legacy Series / How to configure static leases and dns entries programmatically?
« on: September 25, 2023, 04:03:34 am »
Hello, I'm brand new to OPNsense, but have been running PFSense for many years and never having to dig too deep. I'd like to be able to configure my static leases and dns entries programmatically so that I may version these configs and it's very reproducible. I see that there is an "advanced" means to set configuration within /usr/local/etc/dhcpd.opnsense.d, but I have no context for how these will be loaded in and I'd like to see the surrounding config to understand what would be valid. This has led to many questions:
* What would be the advised manner to programmatically configure static mappings for dhcp?
* When a static mapping is saved in the GUI, where is this persisted in the filesystem?
* What "service manager" a.la systemd is in usage with opnsense? I stumbled across configctl and pluginctl, would like to understand the difference. Are these how opnsense services like dhcp should be managed?
* How should I achieve a similar goal, but configure dns settings such as a wildcard? Is unbounce used by default? Where is this configured in the file system?
* What would be the advised manner to programmatically configure static mappings for dhcp?
* When a static mapping is saved in the GUI, where is this persisted in the filesystem?
* What "service manager" a.la systemd is in usage with opnsense? I stumbled across configctl and pluginctl, would like to understand the difference. Are these how opnsense services like dhcp should be managed?
* How should I achieve a similar goal, but configure dns settings such as a wildcard? Is unbounce used by default? Where is this configured in the file system?