knot-resolver as a DNSoTLS client fails upon sleep
On macOS Mojave 10.14.2, when using knot-resolver
as a DNSoTLS client (setting knot-resolver
to communicate with Cloudflare's public DNS over TLS, and setting OS network DNS configuration to the local host, 127.0.0.1
& ::1
), when Mac system enters sleep, knot-resolver stops communicating, either with macOS (local side), or Cloudflare (network side); unsure as to wich. Communication does not resume when resuming from sleep.
When this failure occurs, KRESD.LOG
is given a single line:
Assertion failed: (tls_p->consumed == tls_p->nread), function tls_process_input_data, file daemon/tls.c, line 508.
Attemps to test connectivity using kdig bing.com
result in
;; WARNING: response timeout for ::1@53(UDP)
;; WARNING: response timeout for 127.0.0.1@53(UDP)
Suggesting that it is local side, assuming the timeout is between macOS itself and
Temporary solution is to run sudo brew services restart knot-resolver
via terminal, restarting the service and returning functionality of knot-resolver as a DNSoTLS client.