services.dnscache.domainServers

NixOS option

Table of {hostname: server} pairs to use as authoritative servers for hosts (and subhosts). If entry for @ is not specified predefined list of root servers is used.

type: attribute set of list of string
Default
{ }
Example
{
  "@" = ["8.8.8.8" "8.8.4.4"];
  "example.com" = ["192.168.100.100"];
}
declared in: nixos/modules/services/networking/dnscache.nixView source on NixOS/nixpkgs →