Skip to content

local ​

The system resolver: /etc/hosts, then the servers of /etc/resolv.conf. The value is a settings block or empty. Queries for link-local zones (.local) go to mdns.

Fields ​

FieldMeaning
prefer_goAccepted for compatibility; does not change behavior, check warns
neighbor_domainSuffixes like .lan: names of clients from DHCP leases (route.dhcp_lease_files) in these zones are answered with their addresses. A value without a leading dot is an error
skip_adblocktrue means adblock does not filter queries to it; the field exists only if the module is in the build

via and dial work as in DNS upstreams.

Example ​

yaml
dns:
  upstreams:
    system:
      local:
        neighbor_domain: [.lan]
  final:
    upstream: system

Build key: dns.local, see Build your own.

GPL-3.0-or-later