brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: pihole -q tells you which list blocks a domain

Network and access
~/tips/tip-dns-pihole-query

pihole -q example.com

Shows which Pi-hole list blocks a domain, so you can allow it.

A site is broken and you suspect your blocklist. Scrolling through the query log works, but there is a faster way.

Pi-hole can check a domain against everything it knows. You get the allowlist, denylist, regex filters and the subscribed lists that match it:

pihole -q example.com
pihole -q -exact -adlist example.com

The docs describe it as a query of your allowlist, denylist, wildcards and subscribed lists for one domain. The result names the list, so you know whether to allow the domain once or drop a whole list that is too aggressive.

Then allow the domain with pihole allow example.com. Changes apply without a restart. The caveat: it tells you what blocks the name in Pi-hole, not whether the page works afterwards. Many pages pull in several other domains, so a fixed page can still need a second or a third allow rule. Use the query log to find them.

Because it names the list, it also tells you which of your lists causes the most trouble. If the same one keeps showing up in your fixes, I would drop it rather than keep patching around it, and pick a milder list that does the same job.

Further reading: Pi-hole command reference, On this site: pihole disable 5m pauses blocking and turns itself back on, On this site: use-application-dns.net tells Firefox to leave DoH off

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link