Skip to content

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

@ismay-tue

Description

@ismay-tue

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions