cyclone: run a caching local DNS resolver for the LAN #1256

Merged
JakeHillion merged 1 commits from jj/kvvzvtlykvpm into main 2026-07-30 11:41:05 +01:00
Owner

The LAN had no local resolver: DHCP handed clients public resolvers
(1.1.1.1/8.8.8.8) with no caching, no local names, and no encrypted
upstream. Freshly plugged-in UniFi devices also had no way to find the
controller, which runs remotely on boron.

Run unbound on cyclone bound to the LAN gateway as a validating, caching
resolver that forwards everything to Cloudflare/Google over DoT, with
prefetch and prefetch-key to keep hot records warm. Serve a local unifi
record as a CNAME to unifi.hillion.co.uk so UniFi devices adopt against the
controller, and point the lan network's DHCP domain-name-servers at cyclone.

Test plan:

  • CI
  • After deploy, dig @10.64.50.1 unifi resolves via unifi.hillion.co.uk to
    138.201.252.214, general names resolve over DoT, and DNSSEC validates
    (ad flag on signed zones, SERVFAIL on dnssec-failed.org)
The LAN had no local resolver: DHCP handed clients public resolvers (1.1.1.1/8.8.8.8) with no caching, no local names, and no encrypted upstream. Freshly plugged-in UniFi devices also had no way to find the controller, which runs remotely on boron. Run unbound on cyclone bound to the LAN gateway as a validating, caching resolver that forwards everything to Cloudflare/Google over DoT, with prefetch and prefetch-key to keep hot records warm. Serve a local `unifi` record as a CNAME to unifi.hillion.co.uk so UniFi devices adopt against the controller, and point the lan network's DHCP domain-name-servers at cyclone. Test plan: - CI - After deploy, `dig @10.64.50.1 unifi` resolves via unifi.hillion.co.uk to 138.201.252.214, general names resolve over DoT, and DNSSEC validates (ad flag on signed zones, SERVFAIL on dnssec-failed.org)
JakeHillion force-pushed jj/kvvzvtlykvpm from 87aa62958f to d77fe63eb4 2026-07-30 11:21:42 +01:00 Compare
JakeHillion force-pushed jj/kvvzvtlykvpm from d77fe63eb4 to a25fbbd982 2026-07-30 11:26:17 +01:00 Compare
JakeHillion changed title from cyclone: serve LAN DNS via unbound with a local unifi record to cyclone: run a caching local DNS resolver for the LAN 2026-07-30 11:38:32 +01:00
JakeHillion added 1 commit 2026-07-30 11:38:32 +01:00
cyclone: run a caching local DNS resolver for the LAN
commit-validation / validate-single-commit (pull_request) Successful in 7s
buildbot/nix-eval Build done. (531 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
f56a8e3b28
The LAN had no local resolver: DHCP handed clients public resolvers
(1.1.1.1/8.8.8.8) with no caching, no local names, and no encrypted
upstream. Freshly plugged-in UniFi devices also had no way to find the
controller, which runs remotely on boron.

Run unbound on cyclone bound to the LAN gateway as a validating, caching
resolver that forwards everything to Cloudflare/Google over DoT, with
prefetch and prefetch-key to keep hot records warm. Serve a local `unifi`
record as a CNAME to unifi.hillion.co.uk so UniFi devices adopt against the
controller, and point the lan network's DHCP domain-name-servers at cyclone.

Test plan:
- CI
- After deploy, `dig @10.64.50.1 unifi` resolves via unifi.hillion.co.uk to
  138.201.252.214, general names resolve over DoT, and DNSSEC validates
  (ad flag on signed zones, SERVFAIL on dnssec-failed.org)
JakeHillion force-pushed jj/kvvzvtlykvpm from a25fbbd982 to f56a8e3b28 2026-07-30 11:38:32 +01:00 Compare
JakeHillion merged commit f56a8e3b28 into main 2026-07-30 11:41:05 +01:00
JakeHillion deleted branch jj/kvvzvtlykvpm 2026-07-30 11:41:05 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JakeHillion/nixos#1256