Skip to content

Trust dns

services.trust-dns.debug

Log DEBUG, INFO, WARN and ERROR messages. This option is mutually exclusive with the debug option. If neither quiet nor debug are enabled, logging defaults to the INFO level.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.enable

Whether to enable trust-dns. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.package

The trust-dns package to use. ::: {.note} The package must provide meta.mainProgram which names the server binary; any other utilities (client, resolver) are not needed. :::

Type: package

Default

pkgs.trust-dns

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.quiet

Log ERROR level messages only. This option is mutually exclusive with the debug option. If neither quiet nor debug are enabled, logging defaults to the INFO level.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings

Settings for trust-dns. The options enumerated here are not exhaustive. Refer to upstream documentation for all available options: - Example settings

Type: TOML value

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.directory

The directory in which trust-dns should look for .zone files, whenever zones aren't specified by absolute path.

Type: string

Default

"/var/lib/trust-dns"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.listen_addrs_ipv4

List of ipv4 addresses on which to listen for DNS queries.

Type: list of string

Default

["0.0.0.0"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.listen_addrs_ipv6

List of ipv6 addresses on which to listen for DNS queries.

Type: list of string

Default

lib.optional config.networking.enableIPv6 "::0"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.listen_port

Port to listen on (applies to all listen addresses).

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

53

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.zones

List of zones to serve. Type: list of ((submodule) or string convertible to it)

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.zones.*.file

Path to the .zone file. If not fully-qualified, this path will be interpreted relative to the directory option. If omitted, defaults to the value of the zone option suffixed with ".zone".

Type: path or string

Default

"${config.zone}.zone"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.zones.*.zone

Zone name, like "example.com", "localhost", or "0.0.127.in-addr.arpa".

Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix

services.trust-dns.settings.zones.*.zone_type

One of: - "Primary" (the master, authority for the zone). - "Secondary" (the slave, replicated from the primary). - "Hint" (a cached zone with recursive resolver abilities). - "Forward" (a cached zone where all requests are forwarded to another resolver).

For more details about these zone types, consult the documentation for BIND, though note that trust-dns supports only a subset of BIND's zone types: https://bind9.readthedocs.io/en/v9_18_4/reference.html#type

Type: one of "Primary", "Secondary", "Hint", "Forward"

Default

"Primary"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/trust-dns.nix