Fly.ioTutorial
Stuff Your Pi-Hole From Anywhere
Summary
Pi-Hole blocks advertising and tracking domains by acting as a DNS server that returns a dummy address for listed hosts, but a home deployment is difficult to use while traveling and can incur latency. The post presents “Fli-Hole,” a globally reachable Pi-Hole application deployed on Fly’s edge network, using the official Docker image without modifying Pi-Hole itself. Its configuration sets INTERFACE and DNSMASQ_LISTENING, exposes UDP port 53 through fly.toml, stores the web password as a Fly secret, and deploys with fly deploy. Additional Fly regions, such as Frankfurt, can be added so nearby traffic is routed through them. Each regional instance has independent settings and no persistence or sharing, while Dockerfile changes and redeployment provide a way to distribute configuration updates.
Context
A Pi-Hole commonly runs on a home network, where it can provide DNS and DHCP services, but taking it on the road requires reconnecting it to each new network. A single home or datacenter deployment can also introduce latency because DNS requests travel farther from the user.
Approach / What changed
Deploy the official Pi-Hole Docker image on Fly’s global edge network. Configure its listening interfaces, expose UDP port 53 with a fly.toml services section, set WEBPASSWORD through Fly secrets, deploy with fly deploy, and add regions such as Frankfurt when needed.
Takeaways
Pi-Hole filters advertising and tracking hosts at the DNS level by returning a dummy address instead of resolving matching domains.
Fly deployment requires UDP port 53 to be routed to the application’s internal port 53; Pi-Hole itself does not need to be modified.
Each regional Fli-Hole instance has independent settings and no persistence or sharing, so configuration changes require Dockerfile updates and redeployment.
Source and freshness
- Source
- fly.io
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.