Skip to main content

4 posts tagged with "debian"

View All Tags

Encrypt Pi-hole Upstream DNS with dnscrypt-proxy on Debian 13

· 10 min read
Hung Viet Nguyen
Developing Jest Preview and Vitest Preview

Pi-hole is a network-wide DNS sinkhole that can block ads and trackers by filtering requests to domains on its blocklists. It also caches answers and shows which devices made DNS requests. These features work only for requests that pass through Pi-hole.

My use case is Chrome's Secure DNS, which uses DNS-over-HTTPS (DoH). When Chrome is set to a custom secure DNS provider, its lookups go directly to that provider and bypass Pi-hole, so Pi-hole cannot filter or log them. I wanted to keep Pi-hole in the request path while encrypting the connection from Pi-hole to its upstream resolver. To do that, clients need to use Pi-hole for DNS, and Pi-hole needs an encrypted upstream.

This guide adds dnscrypt-proxy on a Debian 13 host and configures it to use Quad9 over DoH. Pi-hole runs in Docker, and the proxy listens on the Docker bridge gateway so the container can reach it. This encrypts the Pi-hole-to-Quad9 connection; it does not configure Pi-hole to provide DoH or DNS-over-TLS (DoT) to clients. A client configured to send DoH or DoT directly to an external provider will still bypass Pi-hole.

Install and Share an HP LaserJet 1020 on Debian

· 5 min read
Hung Viet Nguyen
Developing Jest Preview and Vitest Preview

An HP LaserJet 1020 connected by USB can become a shared printer for your home network. Debian handles printing through CUPS, HPLIP provides HP printer support, and Avahi makes the shared queue discoverable on the LAN, including from an iPhone through AirPrint.

This guide covers installation, a local test print, and network sharing. Run the commands on the Debian computer connected to the printer.

Automatically Disable Wi-Fi When Ethernet Is Connected

· 4 min read
Hung Viet Nguyen
Developing Jest Preview and Vitest Preview

I am setting up Home Assistant on an old Dell laptop. Because this machine will run all the time, I have been looking for small ways to reduce its power usage.

One simple improvement is to turn off Wi-Fi whenever Ethernet is connected, then turn Wi-Fi back on when the Ethernet cable is unplugged. Debian 13 uses NetworkManager, so this can be automated with a dispatcher script.