Skip to content

DHCP & DNS

DHCP server

Network → DHCP Server configures one pool per interface (dnsmasq in DHCP-only mode): range, lease time, gateway, DNS and NTP servers (default: the interface address), domain, extra options (dnsmasq syntax) and IPv6 router advertisements (SLAAC + RDNSS).

  • Reservations pin a MAC address to an IP and a hostname.
  • Active leases shows current clients with a Reserve button.
  • Hostnames are registered in the local DNS zone automatically.

fr0ntier DNS server

The DNS server is part of the fr0ntier binary and runs as the unprivileged fr0ntier-dns user. It listens on port 53 for clients on interfaces with DNS administrative access (plus an internal ACL with the same networks).

Resolution pipeline

flowchart LR
  Q[query] --> ACL{ACL / rate limit}
  ACL --> L{local zone?}
  L -- yes --> A1[answer]
  L -- no --> F{blocked?}
  F -- yes --> B[0.0.0.0 / NXDOMAIN]
  F -- no --> C{cache?}
  C -- hit --> A2[answer]
  C -- miss --> U[conditional forwarder or upstreams]
  U --> CN{CNAME cloaking / rebind?}
  CN -- block --> B
  CN -- ok --> A3[answer + cache]

Local DNS

  • hostname.domain and fr0ntier.domain resolve to the firewall LAN addresses.
  • DHCP clients and reservations are published as name.domain (+ reverse PTR).
  • Local records: A, AAAA, CNAME, TXT, MX, PTR, SRV; short names get the local domain appended; wildcards such as *.apps.lan are supported.
  • Names under the local domain that do not exist return NXDOMAIN and are never sent to the Internet; private reverse zones are answered locally as well.
  • Conditional forwarders send a domain (e.g. corp.example.com) to internal servers.

Upstreams

Syntax Transport
9.9.9.9, udp://9.9.9.9:53 plain DNS (UDP, TCP fallback on truncation)
tcp://1.1.1.1 DNS over TCP
tls://9.9.9.9#dns.quad9.net DNS-over-TLS (IP + certificate name)
https://dns.quad9.net/dns-query DNS-over-HTTPS (hostname resolved with the bootstrap servers)

Strategies: failover (in order, unhealthy servers skipped), parallel (fastest wins) and round-robin. Default: Quad9 and Cloudflare over TLS.

Filtering (Pi-hole / AdGuard style)

Network → DNS Filtering:

  • Blocklists in hosts, plain domain, wildcard and Adblock (||domain^) formats, downloaded through the firewall's own resolver and cached on disk. A listed domain blocks its subdomains too.
  • Allow list and deny list accept exact names, *.wildcards and /regex/.
  • CNAME cloaking detection blocks answers that alias to a blocked tracker.
  • Answer mode: null IP (0.0.0.0 / ::), NXDOMAIN or REFUSED.
  • Bypass clients are never filtered.
  • use-application-dns.net returns NXDOMAIN so browsers keep using the network resolver.

Security & privacy

Rebind protection (public names may not resolve to private IPs), per-client rate limiting, ACL, optional client anonymisation in logs, configurable query-log retention.

Analytics

Monitoring → DNS Analytics: queries and blocked per hour, cache hit rate, top domains, top blocked, top clients, query types, upstream latency and health, and a filterable live query log. Queries can be exported to a SIEM (stream dns).