English
hosts
Answers from hosts files and from a list in the configuration. The value is a settings block.
Fields
| Field | Meaning |
|---|---|
path | Hosts files; reread when they change. /etc/hosts by default |
predefined | A mapping "domain → an address or a list of addresses" |
skip_adblock | true 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-hostsBuild key: dns.hosts, see Build your own.