diff options
author | Ben Sima <ben@bsima.me> | 2022-08-25 08:56:43 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-08-25 08:56:43 -0400 |
commit | e96c147896f12e2f5c171f980b2d2d84407fdb3c (patch) | |
tree | 01889339c3ef865ef3517b7388b56c049e0de2c0 /Biz/Dev/Dns.nix | |
parent | 2c7a85de18eb46d8afb449e4784720eb7c284e55 (diff) |
Prototype DNS support locally
This works when I route from lithium, including with 'dig', but when I try to
'dig @lithium router.home' from helium, for example, it times out. So my thought
is that the firewall is blocking, but that doesn't seem to be the problem. So
maybe my router is doing something? Hopefully when I migrate this to my APU
router this will all just work, but idk.
Diffstat (limited to 'Biz/Dev/Dns.nix')
-rw-r--r-- | Biz/Dev/Dns.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Biz/Dev/Dns.nix b/Biz/Dev/Dns.nix new file mode 100644 index 0000000..e64e114 --- /dev/null +++ b/Biz/Dev/Dns.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, ... }: + + + +{ + services.bind = { + enable = true; + forwarders = [ + "8.8.8.8" + "1.1.1.1" + ]; + cacheNetworks = [ + "127.0.0.0/8" + "192.168.0.0/24" + ]; + extraConfig = '' + ''; + extraOptions = '' + dnssec-validation auto; + ''; + zones = [ + { + master = true; + name = "home"; + slaves = []; + file = ./Home.zone; + } + ]; + }; + + #networking.extraHosts = '' + # 192.168.0.1 router.home + # 192.168.0.196 lithium.home + #''; + +} |