I have a old laptop that's serving me as a Technitium DNS server and Tailscale exit node.
My setup is behind a CGNAT, but the Tailscale make its way around and that's not an issue. My VPN exit node works flawlessly.
However I also set my router to make my laptop as DNS server, so all my lan network is passing through the Technitium. So, in theory all my local network is using my selfhosted DNS server.
Issue
The issue here is not the server itself, cause it's working as intended - when I can connect to it.
What's going on is that my server for once in a while become unreachable from lan. If I try to ping it from another device in local network, it returns that it's unreachable, but my server still connected to the internet (I can ping Google, for example). So to solve it, I must do one of the below:
Kick the server from the router, forcing it to reconnect
Connect to the Tailscale VPN and ping it from the Tailscale ip
Reboot my server
It anoys me because it's not supposed to the server become unreachable in local randomly!
It's important to comment that the server isn't connected through ethernet, but it uses wifi because I can't put my laptop near the router. The laptop is close enough to not have any wifi interference, however.
What can I do to prevent my server to become unreachable?
The router says it's reachable? Weird. I wonder if it's a bug in the router then. Any firmware update available? You have tried just rebooting the router, right?
You could also script a reconnection on the laptop to happen every six hours or something.