mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 01:56:13 +01:00
a5a651dbb9
Signed-off-by: main <magic_rb@redalder.org>
44 lines
798 B
Nix
44 lines
798 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.bind = {
|
|
enable = true;
|
|
forwarders = [
|
|
"8.8.8.8"
|
|
"8.8.4.4"
|
|
];
|
|
zones = {
|
|
"vault.in.redalder.org" = {
|
|
file = ./zones/vault.in.redalder.org.zone;
|
|
master = true;
|
|
};
|
|
"hosts.in.redalder.org" = {
|
|
file = ./zones/hosts.in.redalder.org.zone;
|
|
master = true;
|
|
};
|
|
};
|
|
|
|
cacheNetworks = [
|
|
"127.0.0.0/8"
|
|
"10.64.1.0/24"
|
|
"10.64.0.0/24"
|
|
];
|
|
extraOptions = ''
|
|
recursion yes;
|
|
'';
|
|
extraConfig = ''
|
|
zone "consul.in.redalder.org" IN {
|
|
type forward;
|
|
forward only;
|
|
forwarders { 10.64.1.201 port 8600; };
|
|
};
|
|
'';
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
53
|
|
];
|
|
networking.firewall.allowedUDPPorts = [
|
|
53
|
|
];
|
|
}
|