coredns: init
This commit is contained in:
parent
9b18682813
commit
b4bcfd90a9
3 changed files with 26 additions and 0 deletions
25
modules/services/dns/coredns.nix
Normal file
25
modules/services/dns/coredns.nix
Normal 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 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue