global parameter or not ?

Glenn Satchell glenn.satchell at uniq.com.au
Thu Sep 23 14:03:27 UTC 2010


On 09/23/10 19:30, Zeller, Jan (ID) wrote:
>> Setting dynamic dns in only one subnet is usually done like this:
>>
>> # global scope, disable ddns updates
>> ddns-update-style interim;
>> ddns-updates no;
>>
>> subnet .... {
>>       # enable ddns updates in this scope
>>       ddns-updates yes;
>>       ....
>> }
>> subnet ... {
>>       # no dynamic dns here, inherited from global
>>       ....
>> }
>>
>> Or you could do the opposite, enable ddns-updates at the global level
>> and turn it off in selected subnets. Whichever one is easier for you.
>>
>> regards,
>> -glenn
>
> Great Glenn I'll try that.
> But shouldn't it be 'ddns-updates off / on' instead of 'no / yes' ? Anyway.
> Thanks a lot for your help !
>
> ---
>
> Jan

I stand corrected, you can use true/false or on/off. This applies to all 
settings that take a boolean flag.

common/parse.c
                 if (!strcasecmp (val, "true")
                     || !strcasecmp (val, "on"))
                         buf [0] = 1;
                 else if (!strcasecmp (val, "false")
                          || !strcasecmp (val, "off"))
                         buf [0] = 0;


regards,
-glenn



More information about the dhcp-users mailing list