[Dnsmasq-discuss] Feature request = block-conf

Rance Hall rance_hall at icloud.com
Fri Mar 4 19:08:40 UTC 2022


You are most welcome.

Sent from my iPhone

> On Mar 4, 2022, at 12:19 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
> 
> Thanks Rance, you saved me from writing the same answer.
> 
> Simon.
> 
> 
>> On 04/03/2022 17:00, Rance Hall via Dnsmasq-discuss wrote:
>> How does dnsmasq behave if there is a configuration error in the config file elsewhere?  If the syntax is broken then it fails hard.  Don't see why this wouldn't be true of a suplemental config script being referred to in the main one.
>> And as to --fail-safe:  I don't see how this is reasonable, as it will lead to undesirable operation and possibly even broken clients if the mistake includes part of the dhcp configuration.
>> Its annoying, but probably better for services not to start if they can't interpret/understand their starting state.
>> Rance
>>>> On Mar 4, 2022, at 4:16 AM, Ercolino de Spiacico <bellocarico at hotmail.com> wrote:
>>> 
>>> 
>>> > I've just added it to 2.87test8
>>> 
>>> > Please test and report back.
>>> 
>>> 
>>> 
>>> I'm finally managed to find a way to build from sources. One initial
>>> feedback:
>>> 
>>> I cross referenceed the conf script e.g.
>>> 
>>> conf-scrip=/tmp/adblock-expander.sh
>>> 
>>> If the file doesn't exists or has a broken syntax it will make the whole
>>> dnsmasq process failing with a message like "/tmp/adblock-expander.sh
>>> returns a non 0 exit code something"
>>> 
>>> This is perhaps a wider topic and goes a bit out of scope for this
>>> feature request, but perhaps we should:
>>> 
>>> 1) remove this error control for conf-script and simply log+skip errors
>>> rather than crash land the whole dnsmasq.
>>> 
>>> 2) perhaps introducing a new "--fail-safe" option for dnsmasq to extend
>>> point 1) to any broken directive in the configuration
>>> 
>>> 
>>> Thanks!
>>> 
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list