OpenWrt, UniFi & Tailscale Encrypted DNS Setup with guardino-cli
Deploy a single verified Go binary on your router or workstation with 8 sovereign PoP bootstrap IPs, DoH + DoT failover, RAM caching, and zero broken .lan hostnames.
By Hakan Kaynak · Founder, Guardino Technologies
TL;DR:
guardino-cliis a standalone zero-CGO Go binary built for OpenWrt, UniFi OS (UDM/UCG), Linuxsystemd-resolved, macOSlaunchd, FreeBSD, Tailscale, and Docker. It pairs 8 hardcoded PoP bootstrap IPs with DoH primary + DoT failover, keeps.lanandhome.arpalocal via split-horizon forwarders, and supports--dry-runbefore editing a single host file. See the full overview on our Router & OS CLI hub.
Most router scripts either replace dnsmasq abruptly or break at reboot when encrypted upstream hostnames cannot resolve without DNS first. guardino-cli avoids both traps cleanly.
Step 1: Install the Verified Static Binary
The installer fetches the matching tarball for Linux (amd64, arm64, armv7, mipsle, mips64le), macOS (amd64, arm64), FreeBSD, or OpenWrt and validates SHA256SUMS.txt before copying the binary into PATH:
sh -c "$(curl -sL https://guardino.ai/install.sh)"
Step 2: Mint an Instant Shield or Link Your Profile
You don't even need an account to test on a lab router:
# Zero-signup 7-day Instant Shield (presets: family | focus | privacy)
guardino init --preset focus
# Or bind an existing dashboard Shield ID
guardino init --profile YOUR_SHIELD_ID
For general home Wi-Fi concepts first, see our encrypted router setup guide and setup guide.
Step 3: Preserve .lan & home.arpa (OpenWrt / UniFi OS)
Before activating, point internal domains at your local gateway (bogus-priv is enabled by default so RFC1918 reverse lookups stay on the LAN):
guardino config set forwarder "lan=192.168.1.1,home.arpa=192.168.1.1"
On OpenWrt and UniFi OS, guardino-cli automatically listens on 127.0.0.1:5342 while leaving dnsmasq on port 53 to handle DHCP leases cleanly.
Step 4: Inspect with --dry-run, Activate & Benchmark
Always inspect planned changes before applying:
guardino install --dry-run
sudo guardino install && sudo guardino activate
Confirm PoP routing across Vienna, Warsaw, Stockholm, Seattle, Queretaro, Pune, Jakarta, and Tokyo and check live encryption:
guardino ping
guardino test
guardino status
Bonus: Tailscale & Docker Modes
- Tailscale: Run
guardino tailscaleto print your profile's DoH endpoint formatted for Tailscale Split DNS and exit nodes. - Docker: Run
guardino run --listen 0.0.0.0:53 --profile YOUR_SHIELD_IDfor isolated homelab containers.
Need browser-level diagnostics too? Verify from any device using /leak-test or explore options on the CLI hub.
Frequently asked questions
Does guardino-cli conflict with dnsmasq DHCP leases on OpenWrt?+
No. guardino-cli binds to loopback port 127.0.0.1:5342 behind dnsmasq on OpenWrt and UniFi OS, so dnsmasq keeps port 53 for DHCP and local hostnames.
How does it avoid bootstrap DNS loops when the router reboots?+
Eight hardcoded sovereign PoP bootstrap IPs across four continents let guardino-cli establish DoH and DoT connections directly before local DNS resolution comes up.
Can I preview every file edit before modifying my router or Linux host?+
Yes. Run guardino install --dry-run and guardino activate --dry-run to print the exact service unit, resolv.conf, or dnsmasq changes before committing anything.
How do I uninstall guardino-cli cleanly?+
Run sudo guardino deactivate && sudo guardino uninstall to restore previous DNS resolver settings and remove service files.
Generate your live DNS shield in 1 click
Pick what you want to block right now. We create your dedicated encrypted DNS address instantly - active for 7 days with full Pro controls, no account or card required.
No email · No app install · No credit card · Query logging off by default
Set up Guardino in two minutes. Start protecting your network today.
Test your connection first→Continue reading
60-Second Encrypted DNS Setup: iPhone, Android, Smart TV, Router & 8 Profile Templates
No battery-draining VPN apps and no networking degree required. How to connect every phone, laptop, smart TV, and router to Guardino DNS in 60 seconds.
Guardino Technologies Global Sovereign DNS Server Network: 4 Continents, 8 Cities & Leak-Free Architecture
How Guardino Technologies built an eight-city directly resolving encrypted DNS backbone across four continents with Zero-ECS privacy, DNSSEC validation, and verified dns.guardino.ai identity.
Pi-hole vs Cloud Encrypted DNS: Why Local Filtering Drops on Cellular Networks
Pi-hole protects devices inside your home LAN, but filtering drops when phones move to 5G or travel Wi-Fi unless tunneled over a full VPN. Here is how encrypted cloud DNS solves mobile roaming without hardware upkeep.