unbound: add support for TXT records in host overrides (#9188)
* unbound: add support for TXT records in host overrides
* Update src/etc/inc/plugins.inc.d/unbound.inc
Co-authored-by: Franco Fichtner <franco at opnsense.org>
---------
Co-authored-by: Franco Fichtner <franco at opnsense.org>
(cherry picked from commit e6ce9e7789926207c50ecdcab9bcc73979c70d6c)
Firewall: Diagnostics: Aliases - slighly improve alias parsing performance
For large lists (~1m records), parsing pfctl is rather expensive. We can save some time using two different tactics.
1. start parsing the pfctl content while executing, which is done by readline() on Popen()
2. prefer string compare before split, as split is rather expensive and we only want the content in parts when not '0', we can ease handling with faster string compares
In my local test this saves rougly 33% of the execution time.
(cherry picked from commit ccfe01f36e3e5613226a1813b103327100b9a0d6)
KEA DHCPv4: honor client specific reservation domain name option (#9186)
* KEA DHCPv4: honor client specific reservation domain name option
Register in DNS with the client specific reservation domain name when specified.
Unbound requires reload.
* Update src/opnsense/mvc/app/controllers/OPNsense/Kea/forms/dialogReservation4.xml
Co-authored-by: Franco Fichtner <franco at lastsummer.de>
* Update src/opnsense/mvc/app/controllers/OPNsense/Kea/forms/dialogSubnet4.xml
Co-authored-by: Franco Fichtner <franco at lastsummer.de>
---------
Co-authored-by: Franco Fichtner <franco at lastsummer.de>
(cherry picked from commit 5b91238349ee0e1c01900f84bf5008c9f93c47be)
legacy: legacy_html_escape_form_data() not escaping keys only data elements.
reported by: Alex Williams from Pellera Technologies
(cherry picked from commit 9b4b22cb6c0efd80aa521f4c4ddec9294d2b6922)
captive portal: remove dir-listing.activate, because mod_dirlisting is not loaded
Seems to have been the case for a while now. We never loaded it manually
and we surely do not need it.
mvc: disable Dnsmasq/Unbound template generation; closes #8888
There are two things to consider:
1. Stopping does not alter the templates because the (re)start
code is in charge of doing the templates, which is not called
when a service is disabled.
2. That actually led to an Unbound bug on stop where the file
system is unmounted, but that should only happen when the
service is disabled. This runs into issue 1. again, but it's
better to leave the system mounted until the backend kicks
in again unmounting it anyway.
mvc: disable Dnsmasq/Unbound template generation; closes #8888
There are two things to consider:
1. Stopping does not alter the templates because the (re)start
code is in charge of doing the templates, which is not called
when a service is disabled.
2. That actually lead to an Unbound bug on stop where the file
system is unmounted, but that should only happen when the
service is disabled. This runs into issue 1. again, but it's
better to leave the system mounted until the backend kicks
in again unmounting it anyway.
system: consistent description for halt job
"Power off" is used mostly in our project and halting is the action before
powering off so use a clear wording that is also reflected elsewhere.
unbound: add support for TXT records in host overrides (#9188)
* unbound: add support for TXT records in host overrides
* Update src/etc/inc/plugins.inc.d/unbound.inc
Co-authored-by: Franco Fichtner <franco at opnsense.org>
---------
Co-authored-by: Franco Fichtner <franco at opnsense.org>