networking.nameservers

NixOS option

The list of nameservers. It can be left empty if it is auto-detected through DHCP.

type: list of string
Default
[ ]
Example
[
  "130.161.158.4"
  "130.161.33.17"
]
declared in: nixos/modules/tasks/network-interfaces.nixView source on NixOS/nixpkgs →