dhclient does not inform NetworkManager on renews

Tom H tomh0665 at gmail.com
Tue Mar 19 12:37:16 UTC 2013


On Tue, Mar 19, 2013 at 4:06 AM, Christoph Mathys <eraserix at gmail.com> wrote:
>
> We have buildservers running 12.04. They use a custom NetworkManager
> script in /etc/NetworkManager/dispatcher.d/ to create and maintain
> their dns entries. The dns server will delete old entries (I presume
> after they have been there for 20+ days or so). The lease-time of dhcp
> addresses is about 5 days.
>
> I checked the lease-file of dhclient, and it seems to renew the lease
> every couple of days, shifting the date for renew/rebind/expire
> forward as expected. However, I don't see anything in syslog that
> hints that NetworkManager has received any event. That means that my
> custom scripts will never run and the dns entry vanishes eventually.
>
> Does dhclient inform NetworkManager when it renews an interface? How?
> How can I know when dhclient renews a dhcp lease? I assume I still
> can't use NetworkManager and dhclient hook scripts?
> (https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/293139)

What are the ownership and mode settings of your dispatcher script?
They should be "root:root" and "0700".

Have you tried the dhclient hook script workaround in the bug report?
(I doubt that this'll ever be fixed given the upstream response to the
GNOME bugzilla bug report; although it was a while ago so you never
know!).




More information about the ubuntu-users mailing list