hosts/common: dns: cleanup hickory-dns file

This commit is contained in:
2024-12-03 23:28:47 +00:00
parent 6af6768160
commit 192771c99f
2 changed files with 33 additions and 33 deletions

View File

@@ -23,7 +23,7 @@
{ config, pkgs, ... }:
{
imports = [
# ./hickory-dns.nix
./hickory-dns.nix
./unbound.nix
];
@@ -49,6 +49,7 @@
services.nscd.enable = false;
# system.nssModules = lib.mkForce [];
sane.silencedAssertions = [''.*Loading NSS modules from system.nssModules.*requires services.nscd.enable being set to true.*''];
# add NSS modules into their own subdirectory.
# then i can add just the NSS modules library path to the global LD_LIBRARY_PATH, rather than ALL of /run/current-system/sw/lib.
# TODO: i'm doing this so as to achieve mdns DNS resolution (avahi). it would be better to just have hickory-dns delegate .local to avahi

View File

@@ -1,6 +1,6 @@
{ config, lib }:
{
config = lib.mkMerge [
{ config, lib, ... }:
lib.mkIf false #< XXX(2024-10-xx): hickory-dns recursive resolution is too immature; switched to `unbound`
(lib.mkMerge [
{
sane.services.hickory-dns.enable = lib.mkDefault config.sane.services.hickory-dns.asSystemResolver;
# sane.services.hickory-dns.asSystemResolver = lib.mkDefault true;
@@ -28,5 +28,4 @@
"127.0.0.53"
];
})
];
}
])