beherbergung/deployment/modules/dns.nix

33 lines
1.2 KiB
Nix
Raw Normal View History

2022-03-10 09:50:38 +01:00
{config, pkgs, nixpkgs, system, dns, ...}:
let
util = dns.util.${system};
in
{
networking.domain = "beherbergung.broenradio.org";
# "beherbergung.mission-lifeline.de";
2022-03-10 09:50:38 +01:00
services.bind = {
enable = true;
zones = {
"${config.networking.domain}" = {
master = true;
file = util.writeZone "${config.networking.domain}" (import (./dns + "/${config.networking.domain}.nix") {inherit dns;});
};
"beherbergung.mission-lifeline.de" = { ## not required in future (but till the NS-record of beherbergung.mission-lifeline.de is configured)
2022-03-10 09:50:38 +01:00
master = true;
file = util.writeZone "beherbergung.mission-lifeline.de" (import (./dns + "/${config.networking.domain}.nix") {inherit dns;});
2022-03-10 09:50:38 +01:00
};
2022-03-16 19:43:17 +01:00
"search.warhelp.eu" = {
master = true;
file = util.writeZone "search.warhelp.eu" (import (./dns + "/search.warhelp.eu.nix") {inherit dns;});
};
"warhelp.broenradio.org" = { ## till NS-record of "search.warhelp.eu" is set
master = true;
file = util.writeZone "warhelp.broenradio.org" (import (./dns + "/search.warhelp.eu.nix") {inherit dns;});
};
2022-03-10 09:50:38 +01:00
};
};
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}