2024-01-03T20:17:27 Informational monit 'unbound' trying to restart 2024-01-03T20:17:23 Error monit 'unbound' process is not running
265 def _load_dnsbl(self): 266 with open(self.dnsbl_path, 'r') as f: 267 try: 268 self.dnsbl = json.load(f) 269 log_info('dnsbl_module: blocklist loaded. length is %d' % len(self.dnsbl['data'])) 270 with open(self.size_file, 'w') as sfile: 271 sfile.write(str(len(self.dnsbl['data']))) 272 if mod_env and type(self.dnsbl.get('config')) is dict: 273 mod_env['context'].set_config(self.dnsbl['config']) 274 except (json.decoder.JSONDecodeError, KeyError) as e: 275 if not self.dnsbl: 276 log_err("dnsbl_module: unable to bootstrap blocklist, this is likely due to a corrupted \ 277 file. Please re-apply the blocklist settings.") 278 self.dnsbl_available = False 279 return 280 else: 281 log_err("dnsbl_module: error parsing blocklist: %s, reusing last known list" % e)
# grep root.hints /usr/local/etc/inc/plugins.inc.d/unbound.incroot-hints: /var/unbound/root.hints
$diff -u /var/unbound/root.hints /usr/local/opnsense/service/templates/OPNsense/Unbound/core/root.min.hints
right. Then OP as per this, maybe you could do this when you hit the problem:Code: [Select]$diff -u /var/unbound/root.hints /usr/local/opnsense/service/templates/OPNsense/Unbound/core/root.min.hints That will compare them and report differences.
Question: Why should one use Unbound if I can not use Block Lists, Block Countries and DoT?
Yeah, maybe, considering unbound is a recursive resolver, unless configured otherwise, it obviously cannot work without knowing what the root servers are.