Skip to content

Coredns

services.coredns.config

Verbatim Corefile to use. See https://coredns.io/manual/toc/#configuration for details.

Type: strings concatenated with "\n"

Default

""

Example

'' . { whoami }''

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

services.coredns.enable

Whether to enable Coredns dns server. Type: boolean

Default

false

Example

true

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

services.coredns.extraArgs

Extra arguments to pass to coredns. Type: list of string

Default

[ ]

Example

["-dns.port=53"]

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

services.coredns.package

The coredns package to use. Type: package

Default

pkgs.coredns

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