valkyrie: Update DNS config so tailscale plugin is used on tailscale

This commit is contained in:
Erwin Boskma 2024-06-08 17:36:11 +02:00
parent 1db9542cf0
commit b5f62be6a3
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
3 changed files with 26 additions and 16 deletions

View file

@ -9,7 +9,7 @@
};
upstreams = {
groups = {
default = [ "127.0.0.1:5335" ];
default = [ "127.0.0.1:5455" ];
"100.64.0.0/10" = [ "127.0.0.1:5454" ];
"fd7a:115c:a1e0::/96" = [ "127.0.0.1:5454" ];
"fd7a:115c:a1e0:ab12::/64" = [ "127.0.0.1:5454" ];
@ -35,17 +35,6 @@
customDNS = {
mapping = {
"home.datarift.nl" = "10.0.0.251";
"frigate.datarift.nl" = "10.0.0.251";
"git.datarift.nl" = "10.0.0.203";
"loki.datarift.nl" = "10.0.0.4";
"minio.datarift.nl" = "10.0.0.251";
"minio-admin.datarift.nl" = "10.0.0.251";
"mqtt.datarift.nl" = "10.0.0.254";
"nix-cache.datarift.nl" = "10.0.0.209";
"saga.datarift.nl" = "10.0.0.251";
"vidz.datarift.nl" = "10.0.0.211";
# Horus
"vaultserver.horus.nu" = "192.168.4.32";
};

View file

@ -0,0 +1,14 @@
$ORIGIN datarift.nl.
$TTL 3600
@ IN SOA gabe.ns.cloudflare.com. dns.cloudflare.com. 3 3600 900 86400 1800
home IN A 10.0.0.251
frigate IN A 10.0.0.251
git IN A 10.0.0.203
loki IN A 10.0.0.4
minio IN A 10.0.0.251
minio-admin IN A 10.0.0.251
mqtt IN A 10.0.0.254
nix-cache IN A 10.0.0.209
saga IN A 10.0.0.251
vidz IN A 10.0.0.211

View file

@ -4,21 +4,28 @@
enable = true;
config = ''
datarift.nl:5454 {
bind 127.0.0.1 ::1
.:5454 {
bind lo
reload 5s
tailscale datarift.nl {
authkey {$TS_AUTHKEY}
fallthrough
}
forward . 127.0.0.1:5335
log
debug
errors
}
.:5454 {
bind 127.0.0.1 ::1
.:5455 {
bind lo
reload 5s
file ${./datarift.zone} datarift.nl {
reload 10s
}
forward . 127.0.0.1:5335
log
debug
errors
}
'';