16 lines
378 B
Nix
16 lines
378 B
Nix
{ lib, ... }:
|
|
{
|
|
services.bind.enable = lib.mkDefault true;
|
|
services.bind.forwarders = []; #< don't forward queries to upstream resolvers
|
|
services.bind.cacheNetworks = [
|
|
"127.0.0.0/24"
|
|
"::1/128"
|
|
"10.0.0.0/16"
|
|
];
|
|
services.bind.extraOptions = ''
|
|
port 953;
|
|
'';
|
|
|
|
networking.resolvconf.useLocalResolver = false; #< undo bind making this default true
|
|
}
|