On Mon, Jan 25, 2016 at 4:43 AM, Lennart Poettering <[email protected]> wrote: > On Sat, 23.01.16 14:22, Johannes Ernst ([email protected]) wrote: > >> Is there a way to receive a callback when a dhcp client-side IP address >> changes? >> >> Use case: dynamic DNS update. > > On Linux changes regarding IP configuration are reported via rtnl (aka > routing netlink). This works regardless how the IP address was > required, and without any extra API from networkd. >
that's somewhat more useful information than 'there's hooks in C for it' Is there some standard daemon that listens and can bind to these events? And even so; can't a few lines (configuration defintion, a variable to store a scriptname, and a call to exec the script like using a systemd unit to setup a network be added to a single place that already does the change? Even if it's a systemd service that's added that in turn listens to rtnl? > Lennart > > -- > Lennart Poettering, Red Hat > _______________________________________________ > systemd-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
