Configuring and testing DNS
The network resolvers send Internet names to public DNS operators. A single option selects them for the entire fleet : the HCS and gateways each derive their configuration from it.
Who uses them
Section titled “Who uses them”| Component | Use | Form |
|---|---|---|
| HCS unbound | relay for public names | DoT, verified by name |
| AdGuard Home (gateway) | bootstrap of its upstreams | plain DNS |
| AdGuard Home (gateway) | fallback | DoT by IP address |
| dnsmasq (gateway) | fallback servers | plain DNS |
Outside this selection : AdGuard Home’s filtering upstream (AdGuard DNS, a filtering policy) and the Internet access ping probes.
Choosing operators
Section titled “Choosing operators”| Name | Operator | Note |
|---|---|---|
cloudflare | Cloudflare 🡕 | by default |
adguard | AdGuard DNS 🡕, unfiltered | by default |
quad9 | Quad9 🡕 | refuses France since 24/11/2026 |
-
Declare the selection
In a project module : any file in
usr/modules/applies to all hosts, so the HCS and gateways receive the same list.usr/modules/dns.nix {darkone.system.dns.publicResolvers = ["quad9""cloudflare"];}At least two distinct operators : if a single one refuses, all DNS goes down, so evaluation rejects it.
-
Register the module
git add usr/modules/dns.nix(the flake ignores untracked files), thenjust clean, which adds it tousr/modules/default.nix. -
Deploy the HCS then the gateways
just apply <hôte> teston each, test, thenjust apply <hôte> switch. Other hosts are unchanged.
Testing
Section titled “Testing”-
The operator responds
From the HCS and from a gateway (
just enter <hôte>), over DoT with certificate verification :Fenêtre de terminal dig +tls +tls-ca +tls-hostname=dns.quad9.net @9.9.9.9 example.orgstatus: NOERROR→ usable.REFUSED→ the operator refuses this country or this address. -
The HCS resolves
Fenêtre de terminal dig @127.0.0.1 domain.tld # NOERRORdig @127.0.0.1 example.org # NOERRORdig @127.0.0.1 dnssec-failed.org # SERVFAIL : DNSSEC validé -
The zone resolves
From a workstation in the zone :
Fenêtre de terminal dig domain.tlddig example.orgNOERROR,Query timeunder one second. The apexdomain.tld, unknown to the local names, traverses the whole chain : gateway, then HCS, then operator. -
AdGuard Home without errors
On the gateway, no lines expected :
Fenêtre de terminal journalctl -u adguardhome --since -10min | grep '\[error\]'
Element Call fails with OPEN_ID_ERROR?
Section titled “Element Call fails with OPEN_ID_ERROR?”LiveKit’s JWT service on the HCS no longer resolves domain.tld : journalctl -u lk-jwt-service shows dns error. Test the HCS (step 2).
Slow or failing queries in a zone?
Section titled “Slow or failing queries in a zone?”AdGuard Home bootstrap unreachable : every uncached name waits for its timeout. The logs show exchanging with <ip>:53 … i/o timeout. Remove the faulty operator from the selection.
How to restore Quad9?
Section titled “How to restore Quad9?”When step 1 returns NOERROR from the HCS and a gateway : add quad9 to the selection, then deploy.
How to add an operator?
Section titled “How to add an operator?”In the framework : an entry in the publicResolvers catalogue (dnf/lib/dns.nix), with its IPv4 and IPv6 addresses and the name of its certificate. This certificate must cover its IP addresses, otherwise the DoT fallback by IP fails :
openssl s_client -connect <ip>:853 </dev/null | openssl x509 -noout -ext subjectAltName