I noticed an few issues with the supervision mechanism:
- I enabled DNS supervision and selected dnsmasq + adguard.
....
Also if I do "killall AdGuardHome" then supervision newer restarts AGH.
- This morning I had an issue that AGH was not responding -> this would not be detected by simply checking if the process is still running.
tbc
To resurrect an older topic. I still occasionally run in to the situation where AdGuardHome stopped working.
And also if I reboot my R7800 then AdGuardHome does't automatically start.
In both cases I usually click on "restore config from USB" and that restarts AGH.
I didn't have time yet to gather logs.
But I was thinking about solutions so that the Supervision can more reliably detect whether AGH is working or not.
My latest thought: Can't we use nc to send an UDP packet to port 5300 to check if AGH is still listening?
A bit of googling led me to this site hxxp://dev.lab427.net/dns-query-wth-netcat.html
And if I try this from my MacBook:
Code:
echo -n -e "\x13\x37\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x13google-public-dns-a\x06google\x03com\x00\x00\x01\x00\x01" | n_c -u -w1 192.168.1.1 5300 | hexdump -C
(replace n_c with nc)
Then indeed I see a DNS query to google-public-dns-a.google.com in the query log of AGH.
and that command also gives some output.
If I for instance try with port 5301 then the command gives no output.
So it seems and ideal solution to test if AGH (or even specific upstream DNS servers) are responding.
Only now the issue:
the nc on the R7800 (supplied by busybox) is really crippled. It does not have the -u option nor the -w1 option.
according to hxxps://www.busybox.net/downloads/BusyBox.html#nc the options should be there. So did netgear then apply some patches to cripple that nc ??