Skip to content

Routedns

services.routedns.configFile

Path to RouteDNS TOML configuration file. Type: path

Default

"A RouteDNS configuration file automatically generated by values from services.routedns.*"

Example

"${pkgs.routedns}/cmd/routedns/example-config/use-case-1.toml"

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

services.routedns.enable

Whether to enable RouteDNS - DNS stub resolver, proxy and router. Type: boolean

Default

false

Example

true

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

services.routedns.package

The routedns package to use. Type: package

Default

pkgs.routedns

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

services.routedns.settings

Configuration for RouteDNS, see https://github.com/folbricht/routedns/blob/master/doc/configuration.md for more information.

Type: TOML value

Example

{resolvers.cloudflare-dot = {address = "1.1.1.1:853";protocol = "dot";};groups.cloudflare-cached = {type = "cache";resolvers = ["cloudflare-dot"];};listeners.local-udp = {address = "127.0.0.1:53";protocol = "udp";resolver = "cloudflare-cached";};listeners.local-tcp = {address = "127.0.0.1:53";protocol = "tcp";resolver = "cloudflare-cached";};}

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