Review license / copyright on all files (final round)
Review license / copyright on all files (1st round)
Leave this to 2.4 only for now. Revert "Omit non-qualified hostnames from unbound's local-data. Ticket #6064"
This reverts commit cde0ef17a60cffa4a54f3ab4922b77bc0447d068.
Omit non-qualified hostnames from unbound's local-data. Ticket #6064
Switch domain overrides from stub-zone to forward-zone. Ticket #6065
Fix unbound.inc so zero value for *_num_tcp is honored
In the Unbound documentation, it is noted that setting "outgoing-num-tcp" to "0" disables TCP queries. In testing I noticed that although I could select & save a value of "0" in the Unbound Advanced Config, the actual value written to /var/unbound/unbound.conf was still the default "10". Apparently in PHP, a value of "0" still tests "false" for !empty(). Changing the test to isset() seems to fix the issue.
Don't include 127.0.0.0/8 in unbound.conf in forward mode. Ticket #5750
Remove unnecessary checks. Code prevents var from being empty.
Wrap var in string with braces.
Move unbound local zone types array to function in unbound.inc.
Protect against breaking the system; check for valid unbound local zone type rather than just the setting existence.
Update license on files from /etc/inc
Fix #5767 config validation errors when first enabling DNS Resolver
Generate a complete set of test conf files in /var/unbound/test subdir when doing the validation of the tentative config that is being saved.This avoids any dependency on any of the "real" files already existing in /var/unbound and also avoids the chance of overwriting a live file that is currently in use by the running unbound....
Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever was the reason they were added, it was never finished and it's not being used
Services - DNS Resolver - System Domain Local Zone Type Option
Expose system domain unbound local-zone type to be configurable.
It is not necessary to omit link-local for unbound. Ticket #4021
Now that the issue in 4062 is fixed, no need to omit link local here. Ticket #4021
Bind to IP aliases correctly in Unbound. Ticket #5464
unbound_statistics section should be written to unbound.conf
The stuff generated by unbound_statistics() goes into unbound.confIt had got separated out and was going nowhere. This puts the behavior back the way it was yesterday.
Note: There is a separate issue about this because the UI has no place to actually select the statistics settings. There is some upgrade code that looks like it was converting statistics settings from the old Unbound package into custom commands in the integrated Unbound. So it looks like the unbound_statistics() function can/should be removed???
Add global so that unbound.conf gets written
to the correct place based on $g setting.
Rearrange calls in unbound.inc so config text can be generated without writing the actual file and a syntax check can be run. Rearrange services_unbound.php to wait until input checking is complete before saving things to global config and run syntax check as part of input checking. Implements #4411.
Check unbound root.key file contents, and remove it if invalid, before unbound-anchor runs otherwise it will fail and unbound will fail to start. fsync the file after writing to prevent the problem. Ticket #5334
Move main pfSense content to src/