This commit is contained in:
2025-01-29 21:33:37 +01:00
commit a2247c5b26
30 changed files with 1036 additions and 0 deletions

22
hosts/genepi/dns.nix Normal file
View File

@@ -0,0 +1,22 @@
{ config, ... }:
{
# networking.firewall.interfaces."${config.services.tailscale.interfaceName}" = {
# allowedTCPPorts = [ 53 ];
# allowedUDPPorts = [ 53 ];
# };
services.unbound = {
enable = true;
resolveLocalQueries = false;
settings = {
server = {
interface = [ "${config.services.tailscale.interfaceName}" ];
access-control = [ "100.0.0.0/8 allow" ];
local-zone = [ ''"grafana.home.rpqt.fr." redirect'' ];
local-data = [ ''"grafana.home.rpqt.fr. IN A 100.83.123.79"'' ];
};
};
};
}