coredns: init

This commit is contained in:
Nico 2026-02-19 20:00:01 +11:00
parent 9b18682813
commit b4bcfd90a9
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ config, ... }:
{
services.coredns = {
enable = true;
config = ''
.:53 {
hosts {
100.100.144.4 seika.astolfo.org
fallthrough
}
# rewrite the CNAME to itself so hosts rule apply
rewrite cname exact seika.astolfo.org. seika.astolfo.org.
forward . 1.1.1.1
log
errors
}
'';
};
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
}