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
1 Commits
Author SHA1 Message Date
JakeHillion f56a8e3b28 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.
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)
2026-07-30 11:36:15 +01:00