On Mon, 29 Sep 2014 10:24:44 -0400 Jiri B <ji...@devio.us> wrote: > On Mon, Sep 29, 2014 at 08:03:14AM -0600, Duncan Patton a Campbell wrote: > > My purpose here is to allow dynamic dns updates > > via nsupdate from a dhcp clients where addresses > > are subject to change. I have a solution that > > will remain stable so long as the !command > > hook in hostname.if remains stable. This is > > not as good as the dhclient.conf script interface > > as it can't exclude calls that don't change > > the interface, but hey... > > > > # more /etc/hostname.nfe0 > > dhcp > > !/usr/local/sbin/dydns.sh $if > > This is executed only during boot or explicitly > via netstart. So you believe your IP won't be changed > by DHCP. > > j. >
For the use that I wanted it is sufficient: code to park on a remote box that may be connected (manually) for occasional maintenance. If it's reasonable from other perspectives I think it would be good to reinclude the external command option in dhclient.conf. Otherwise monitoring the dhcp lease with the -L flag I had not thought of but does provide the necessary trigger to update dns. Thanks, Dhu -- Ne obliviscaris, vix ea nostra voco.