hosts/carbon: Move DNS server to seperate file
This commit is contained in:
23
hosts/carbon/dns.nix
Normal file
23
hosts/carbon/dns.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||
|
||||
services.unbound = {
|
||||
enable = true;
|
||||
resolveLocalQueries = false;
|
||||
settings = {
|
||||
server = {
|
||||
interface = [ "fd00:152:152::1" "10.152.0.1" ];
|
||||
access-control = [ "::/0 allow" "0.0.0.0/0 allow" ];
|
||||
prefer-ip6 = true;
|
||||
prefetch = true;
|
||||
serve-expired = true;
|
||||
serve-expired-ttl-reset = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user