knot-resolver crashes regularly on macOS 12.3.1 (intel and arm version), since updating to 5.5.0
Hello team,
with the latest update to knot-resolver on macOS, I've been experiencing many crashes and I don't know how to debug them, as the log stays empty.
I would be working/browsing and suddenly pages do not load anymore, if I check on the service as you can see below, it would be in an error state. Running brew services restart knot-resolver
fixes the issue up until the next crash.
$ sudo brew services 14:10:29
Password:
Name Status User File
dbus none
emacs none
knot none
knot-resolver started root /Library/LaunchDaemons/homebrew.mxcl.knot-resolver.plist
stubby none
tor none
unbound none
$ sudo brew services 14:24:54
Password:
Name Status User File
dbus none
emacs none
knot none
knot-resolver error 6 root /Library/LaunchDaemons/homebrew.mxcl.knot-resolver.plist
stubby none
tor none
unbound none
This is the config file I am using. DNSSEC is disabled because nextdns already validates it for me, and it used to create random SERVFAILs.
-- Network interface configuration
net.listen('127.0.0.1', 53, { kind = 'dns' })
--net.listen('127.0.0.1', 853, { kind = 'tls' })
--net.listen('127.0.0.1', 443, { kind = 'doh2' })
--net.listen('::1', 53, { kind = 'dns', freebind = true })
--net.listen('::1', 853, { kind = 'tls', freebind = true })
--net.listen('::1', 443, { kind = 'doh2' })
-- Load useful modules
modules = {
'hints > iterate', -- Allow loading /etc/hosts or custom root hints
'stats', -- Track internal statistics
'predict', -- Prefetch expiring/frequent records
}
log_level('err')
policy.add(policy.all(policy.TLS_FORWARD({
{'45.90.28.0', hostname='<removed>.dns1.nextdns.io'},
{'2a07:a8c0::', hostname='<removed>.dns1.nextdns.io'},
{'45.90.30.0', hostname='<removed>.dns2.nextdns.io'},
{'2a07:a8c1::', hostname='<removed>.dns2.nextdns.io'}
})))
trust_anchors.remove('.')
-- Cache size
cache.size = 100 * MB
My log file only shows:
...
[system] Knot Resolver is tested on Linux, other platforms might exhibit bugs.
Please report issues to https://gitlab.nic.cz/knot/knot-resolver/issues/
Thank you for your time and interest!
[system] Knot Resolver is tested on Linux, other platforms might exhibit bugs.
Please report issues to https://gitlab.nic.cz/knot/knot-resolver/issues/
Thank you for your time and interest!
[system] Knot Resolver is tested on Linux, other platforms might exhibit bugs.
Please report issues to https://gitlab.nic.cz/knot/knot-resolver/issues/
Thank you for your time and interest!
I had changed the log-level to debug already once too, but it seems that it crashes so hard, it doesn't have a chance to write anything to the log .
Any advice on how to get some better reporting going for this issue? It also surprises me that no one else reported this issue after upgrading to 5.5.0. At first I assumed that my machine is at fault, but only a few days ago I setup a brand new machine (macbook with ARM processor) and the crashing behaviour is the same.