39 lines
910 B
Nix
39 lines
910 B
Nix
{ config, ... }: {
|
|
services = {
|
|
coredns.enable = true;
|
|
# https://coredns.io/manual/configuration/
|
|
# https://github.com/coredns/coredns.io/blob/master/content/manual/configuration.md
|
|
coredns.config = ''
|
|
matri.cx {
|
|
template IN A {
|
|
answer "{{ .Name }} 0 IN A 192.168.0.130"
|
|
}
|
|
}
|
|
|
|
*.matri.cx {
|
|
template IN A {
|
|
answer "{{ .Name }} 0 IN A 192.168.0.130"
|
|
}
|
|
}
|
|
|
|
eversole.co {
|
|
template IN A {
|
|
answer "{{ .Name }} 0 IN A 192.168.0.130"
|
|
}
|
|
}
|
|
|
|
*.eversole.co {
|
|
template IN A {
|
|
answer "{{ .Name }} 0 IN A 192.168.0.130"
|
|
}
|
|
}
|
|
|
|
. {
|
|
forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40
|
|
cache
|
|
}
|
|
|
|
'';
|
|
};
|
|
}
|