I've uploaded
v2.03
unbound v1.9.6 now includes '
unbound-checkconf' which was apparently removed/omitted in unbound
v1.9.3. (Thanks
@dave14305 for the heads-up)
So the utility is now invoked during the
'i = Install/Update' and when requesting the
'rs' or
'rl' commands, so the script should now be able to confidently safe-guard against a corrupt download or mangled configuration file without disrupting/impacting a running configuration.
e.g. attempt to load an unbound configuration that contains syntax errors:
Code:
e = Exit Script
A:Option ==> rl bad
/opt/share/unbound/configs/bad.conf:123: error: syntax error
read /opt/share/unbound/configs/bad.conf failed: 1 errors in configuration file
***ERROR requested config '/opt/share/unbound/configs/bad.conf' NOT loaded
or when requesting
unbound_manager having externally incorrectly edited
'/opt/var/lib/unbound/unbound.conf'
Code:
unbound_manager
Creating 'unbound_manager' alias
+======================================================================+
| Welcome to the unbound Manager/Installation script (Asuswrt-Merlin) |
| |
| Version 2.03 by Martineau |
| |
| Requirements: USB drive with Entware installed |
| |
| i = Install unbound DNS Server - Advanced Mode |
| o1. Enable unbound Logging |
| o2. Integrate with Stubby |
| o3. Install Ad and Tracker Blocking |
| o4. Customise CPU/Memory usage (Advanced Users) |
| o5. Disable Firefox DNS-over-HTTPS (DoH) (USA users) |
| |
| z = Remove Existing unbound Installation |
| ? = About Configuration |
| |
| See SNBForums thread https://tinyurl.com/s89z3mm for helpful |
| user tips on unbound usage/configuration. |
+======================================================================+
/opt/var/lib/unbound/unbound.conf:60: error: unknown keyword 'rset-cache-size'
/opt/var/lib/unbound/unbound.conf:60: error: stray ':'
/opt/var/lib/unbound/unbound.conf:60: error: unknown keyword '16m'
read /opt/var/lib/unbound/unbound.conf failed: 3 errors in configuration file
***ERROR INVALID unbound configuration - use option 'vx' to correct 'unbound.conf' or 'rl' to load a valid configuration file
u = Push to Github PENDING for (Major) unbound_manager v2.03 update >>>> v2.02
i = Update unbound Installation ('/opt/var/lib/unbound/')
z = Remove Existing unbound Installation v = View ('/opt/var/lib/unbound/') unbound Configuration (vx=Edit; vh=View Example Configuration)
3 = Advanced Tools rl = Reload Configuration (Doesn't halt unbound) e.g. 'rl test1[.conf]' (Recovery use 'rl reset/user')
? = About Configuration
rs = Restart (or Start) unbound
e = Exit Script
A:Option ==>