DNS Updates

This commit is contained in:
James Eversole 2023-06-27 19:59:01 -05:00
parent 6de382ceb4
commit fd875e4a2e
2 changed files with 27 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.swp
# Nix
/result
*qcow*

View File

@ -1,17 +1,38 @@
{ config, ... }: {
services = {
coredns.enable = true;
# https://coredns.io/manual/configuration/
# https://github.com/coredns/coredns.io/blob/master/content/manual/configuration.md
coredns.config = ''
. {
forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40
cache
}
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
}
'';
};
}