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 tail shows DNS queries live while you test a website

Network and access
~/tips/tip-pihole-tail-live-log

pihole tail

Watch what a device asks your DNS server in real time to find what gets blocked.

A site loads half, or an app fails without saying why. When you suspect the DNS blocking, you want to see which names get blocked while you click around. On the Pi-hole host, one command shows it live.

pihole tail

It follows the Pi-hole log as queries come in, with the client, the name and what happened to it. The docs describe it as handy for debugging a problematic site. Press Ctrl+C to stop.

On a busy network the stream is too fast to read, so I’d filter on the device you are testing:

pihole tail | grep 192.0.2.50

Now reload the broken page and look for lines that say the name was blocked, often a CDN or an API domain. Once you know the name, allow it in the web interface or with pihole allow and try again.

In Docker, run it inside the container: docker exec -it pihole pihole tail.

Keep in mind the device must really use Pi-hole. If nothing shows up while you browse, it probably has its own DNS set, uses encrypted DNS in the browser, or gets a second DNS server from your router that it prefers. That is worth fixing anyway.

Further reading: The pihole command

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