← back to clip · use your browser's Print / Save as PDF (Ctrl+P).

dnsfilter

by anon · 2026-09-28 16:32:43

🤖 Assistant

Got it — buddy's box, nothing on our network. Then this is a straight troubleshooting runbook. The single most important rule first:

Capture evidence before you restart it. A restart wipes the hung state, and then you're guessing. Grab the stuff below, then restart.

1. Find out what it actually is

bash

systemctl status dnsfilter # state, how long, restart count

systemctl cat dnsfilter # ExecStart = the real binary/script

ps -eo pid,ppid,pcpu,pmem,stat,etime,cmd | grep -i dnsfilter


systemctl cat is the key one — "dnsfilter" could be a Python daemon, a Go binary, a shell wrapper, or the commercial DNSFilter roaming client. The language changes how you debug it.

2. Characterize the hang (before killing it)

bash

top -H -p <PID> # one core pegged, or all of them?

cat /proc/<PID>/status | grep -E 'State|Threads'

cat /proc/<PID>/wchan # what it's blocked on (blank = spinning in userspace)

journalctl -u dnsfilter -n 200 --no-pager

journalctl -u dnsfilter --since "1 hour ago"


3. Raspberry Pi–specific

bash

vcgencmd measure_temp

vcgencmd get_throttled # 0x0 = healthy; anything else = undervoltage/thermal happened

dmesg -T | tail -50 # under-voltage, thermal, OOM, SD I/O errors


get_throttled is the big one on a Pi. A weak/failing PSU (under-voltage) causes exactly this class of weirdness — random hangs and pegged CPU. Also watch for a dying SD card: dmesg will show mmc/I/O errors, and a filter daemon doing heavy logging on a bad card can wedge.

4. Now act

Two things worth confirming up front, because they change the answer a lot: is it 100% of one core or all cores, and is it this project's own resolver or the commercial DNSFilter agent.

Paste back the systemctl cat ExecStart line, the top -H output, and the last ~50 journal lines, and I can tell you which of the above it is rather than leaving you to eyeball it.