Skip to content

hosts ​

Answers from hosts files and from a list in the configuration. The value is a settings block.

Fields ​

FieldMeaning
pathHosts files; reread when they change. /etc/hosts by default
predefinedA mapping "domain → an address or a list of addresses"
skip_adblocktrue means adblock does not filter queries to it; the field exists only if the module is in the build

Example ​

yaml
dns:
  upstreams:
    lan-hosts:
      hosts:
        predefined:
          nas.lan: [192.168.1.10]
          printer.lan: 192.168.1.20
  final:
    upstream: lan-hosts

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

GPL-3.0-or-later