From 8b1f3df4c88fc55f50e584e84a086c7f2599cde8 Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 5 Jan 2024 14:59:23 +0900 Subject: [PATCH] Update Tailscale extraHosts --- nixos/common/services/tailscale.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/common/services/tailscale.nix b/nixos/common/services/tailscale.nix index c7c20720..6941c752 100644 --- a/nixos/common/services/tailscale.nix +++ b/nixos/common/services/tailscale.nix @@ -10,4 +10,12 @@ ]; }; networking.firewall.interfaces.tailscale0.allowedTCPPorts = [ 22 ]; + + # Because of the split DNS< hosts forget which IP + # (external or internal) is promtail/loki. + # Setting them manually here helps. + networking.extraHosts = '' + 100.64.0.14 influx.sysctl.io + 100.64.0.14 loki.sysctl.io + ''; } \ No newline at end of file