Re: [systemd-devel] Need help with DHCPv4 client

2025-02-20 Thread Cristian Rodríguez
On Tue, Feb 18, 2025 at 10:02 PM Thomas Köller wrote: > > My host is on a dynamic IP address (IPv4 only), which it receives via > DHCP from my provider. So far, I have been using ISC dhclient for this, > the network interface being marked as unmanaged in its .network file. > But since dhclient isn

Re: [systemd-devel] Need help with DHCPv4 client

2025-02-19 Thread Nils Kattenbeck
For services/sockets your best bet might be to simply bind them to 0.0.0.0 such that they still work after the address change. My solution for the DNS record is to use iproute2 tools which provide a monitor command (in the sample below filtered for IPv6 changes): #!/usr/bin/sh touch "$CACHE_DIREC

Re: [systemd-devel] Need help with DHCPv4 client

2025-02-19 Thread Tomasz Torcz
On Wed, Feb 19, 2025 at 01:54:06AM +0100, Thomas Köller wrote: > While address updates using systemd's DHCP client seem to work just fine, > there is a problem, however. Whenever the host's IP address changes, some > reconfiguration has to be done: running services listening on sockets opened > bef

[systemd-devel] Need help with DHCPv4 client

2025-02-18 Thread Thomas Köller
My host is on a dynamic IP address (IPv4 only), which it receives via DHCP from my provider. So far, I have been using ISC dhclient for this, the network interface being marked as unmanaged in its .network file. But since dhclient isn't maintained any more, I am exploring ways to replace it wit