wg-obfuscator icon indicating copy to clipboard operation
wg-obfuscator copied to clipboard

systemd unit should resolve ip again for ddns domain on network change

Open ismay-tue opened this issue 8 months ago • 0 comments

I'm using split horizon dns for my ddns domain. Because of this, the systemd service might cache the wrong ip address for the upstream server. If I'm on wifi, my ddns domain ip.me.link might link to 192.168.1.1, but outside my network, it might resolve to the external ip, like 80.160.45.13.

The systemd service does not re-resolve the ip when the network changes, so it might cache the local ip, and then the connection fails silently if you transition to another network. Instead, the systemd service should probably restart on network changes.

ismay-tue avatar Mar 17 '26 12:03 ismay-tue