On 2014-09-29, Duncan Patton a Campbell <[email protected]> wrote:
> On Mon, 29 Sep 2014 05:28:27 -0600
> Duncan Patton a Campbell <[email protected]> wrote:
>
>> /etc/dhclient.conf used to contain a 
>> 
>> script "tosomfile" ;
>> 
>> option that could, amongst other things, be used to
>> set a dynamic assigned dns address to a named server.
>> 
>> This functionality has been removed and I am trying to
>> figure out if there was some other mechanism to accomplish
>> this but I can't find any refs to it in the changes 
>> between 5.1 and 5.5.
>> 
>> Any info would be appreciated.
>> 
>> Thanks,
>> 
>> Dhu
>> 
>> -- 
>> Ne obliviscaris, vix ea nostra voco.
>> 
>> 
>> 
>
> I found it in the 5.3 changes..
>
> "Removed dhclient-script(8) and dhclient.conf(5) "script" directive. Do all 
> interface and route configuration via ioctl's and routing sockets. "
>
> Unfortunately this mechanism was used for more than just routing.  And 
> without a dhclient-script to 
> hack I don't see how a dynamic address can be updated vi the named/key 
> mechanism.

I use entr (in ports) to monitor a file written by dhclient -L which
I use as a trigger, I then parse that same file to pick up the relevant
information from the new lease and handle it appropriately.

There were some changes to dhclient needed for this to work nicely (for
example, to avoid inode number changes), IIRC these went in post-5.5.

Reply via email to