diff options
author | Linnnus <[email protected]> | 2025-03-16 13:22:12 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-03-16 13:31:07 +0100 |
commit | 617dd624903cdb23951f1484c19bc1574b10fa74 (patch) | |
tree | bd61b9ea0fd631372e6909ee3f90beec2e272362 /hosts/ahmed/dns | |
parent | d7746e79e33eac666e2fdf4dfe9862a0a8c736a8 (diff) |
ahmed: Add certificates for local DNS
Diffstat (limited to 'hosts/ahmed/dns')
-rw-r--r-- | hosts/ahmed/dns/default.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/hosts/ahmed/dns/default.nix b/hosts/ahmed/dns/default.nix deleted file mode 100644 index f590f2f..0000000 --- a/hosts/ahmed/dns/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{metadata, ...}: { - services.dnscache = { - enable = true; - clientIps = [ - "192.168" # LAN - "127.0.0.1" # Local connections - ]; - - domainServers = { - "internal" = ["127.0.0.1"]; - }; - }; - - services.tinydns = { - enable = true; - - # We will only listen for internal queries from the DNS cache. - ip = "127.0.0.1"; - - data = '' - .internal:127.0.0.1:a - =ahmed.internal:${metadata.hosts.ahmed.ipAddress} - =muhammed.internal:${metadata.hosts.muhammed.ipAddress} - =jellyfin.internal:${metadata.hosts.ahmed.ipAddress} - =qbittorrent.internal:${metadata.hosts.ahmed.ipAddress} - ''; - }; - - networking.firewall = { - allowedTCPPorts = [53]; - allowedUDPPorts = [53]; - }; -} |