<div dir="auto">Hi Everyone<div dir="auto"><br></div><div dir="auto">We are using dnsmasq version 2.80 and have multiple upstream servers configured, with all-servers flag set. We noticed that if first upstream server fails then we get dns lookup failures even though other upstream servers are working fine.<br><br><div data-smartmail="gmail_signature" dir="auto">Thank You<br>Abhishek Patti</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 26, 2020, 5:28 AM  <<a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk">dnsmasq-discuss-request@lists.thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Dnsmasq-discuss mailing list submissions to<br>
        <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss-request@lists.thekelleys.org.uk</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:dnsmasq-discuss-owner@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss-owner@lists.thekelleys.org.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Dnsmasq-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. TFTP storage issue prevents other dnsmasq services (DHCP/DNS)<br>
      to run (Ercolino De Spiacico)<br>
   2. Re: TFTP storage issue prevents other dnsmasq services<br>
      (DHCP/DNS) to run (Geert Stappers)<br>
   3. Re: TFTP storage issue prevents other dnsmasq services<br>
      (DHCP/DNS) to run (Simon Kelley)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 26 Mar 2020 09:15:09 +0000<br>
From: Ercolino De Spiacico <<a href="mailto:bellocarico@hotmail.com" target="_blank" rel="noreferrer">bellocarico@hotmail.com</a>><br>
To: "<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss@lists.thekelleys.org.uk</a>"<br>
        <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss@lists.thekelleys.org.uk</a>><br>
Subject: [Dnsmasq-discuss] TFTP storage issue prevents other dnsmasq<br>
        services (DHCP/DNS) to run<br>
Message-ID:<br>
        <<a href="mailto:AM7P191MB08077EA4FA6296B4AA48D338B2CF0@AM7P191MB0807.EURP191.PROD.OUTLOOK.COM" target="_blank" rel="noreferrer">AM7P191MB08077EA4FA6296B4AA48D338B2CF0@AM7P191MB0807.EURP191.PROD.OUTLOOK.COM</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
It seems like enabling TFTP like:<br>
<br>
enable-tftp<br>
tftp-root=/mnt/usb/TFTP<br>
dhcp-boot=pxelinux.0,,192.168.0.1<br>
<br>
But experiencing an system storage issue (usb failure, unable to mount, etc) takes the full dnsmasq down e.g. prevent from running at all<br>
<br>
Can I suggest for dnmasq to take a softer approach when this happens and just skip the TFTP process execution rather than affect all the other internal services like DHCP and DNS?<br>
<br>
More than else it's that "external factor" that sucks in this situation.<br>
<br>
Thanks<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200326/fcc89dcb/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200326/fcc89dcb/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 26 Mar 2020 12:14:33 +0100<br>
From: Geert Stappers <<a href="mailto:stappers@stappers.nl" target="_blank" rel="noreferrer">stappers@stappers.nl</a>><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] TFTP storage issue prevents other<br>
        dnsmasq services (DHCP/DNS) to run<br>
Message-ID: <<a href="mailto:20200326111433.i2gl53t73l3ixul3@gpm.stappers.nl" target="_blank" rel="noreferrer">20200326111433.i2gl53t73l3ixul3@gpm.stappers.nl</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On Thu, Mar 26, 2020 at 09:15:09AM +0000, Ercolino De Spiacico wrote:<br>
> It seems like enabling TFTP like:<br>
> <br>
> enable-tftp<br>
> tftp-root=/mnt/usb/TFTP<br>
  tftp-no-fail<br>
> dhcp-boot=pxelinux.0,,192.168.0.1<br>
> <br>
> But experiencing an system storage issue (usb failure, unable to mount,<br>
> etc) takes the full dnsmasq down e.g. prevent from running at all<br>
> <br>
> Can I suggest for dnmasq to take a softer approach when this happens<br>
> and just skip the TFTP process execution rather than affect all the<br>
> other internal services like DHCP and DNS?<br>
> <br>
> More than else it's that "external factor" that sucks in this situation.<br>
<br>
Yes, hence the option    `tftp-no-fail`<br>
<br>
Quoting the manual page<br>
<br>
   --tftp-no-fail<br>
      Do  not abort startup if specified tftp root<br>
      directories are in?accessible.<br>
<br>
<br>
> Thanks<br>
<br>
No problem.  Feel welcome to also report that `tftp-no-fail` does what<br>
you expect from it.<br>
<br>
<br>
Regards<br>
Geert Stappers<br>
-- <br>
Silence is hard to parse<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 26 Mar 2020 11:53:54 +0000<br>
From: Simon Kelley <<a href="mailto:simon@thekelleys.org.uk" target="_blank" rel="noreferrer">simon@thekelleys.org.uk</a>><br>
To: dnsmasq-discuss <<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">Dnsmasq-discuss@lists.thekelleys.org.uk</a>><br>
Subject: Re: [Dnsmasq-discuss] TFTP storage issue prevents other<br>
        dnsmasq services (DHCP/DNS) to run<br>
Message-ID: <<a href="mailto:42e7d990-df47-6ca4-45c1-fe8d4430563b@thekelleys.org.uk" target="_blank" rel="noreferrer">42e7d990-df47-6ca4-45c1-fe8d4430563b@thekelleys.org.uk</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
On 26/03/2020 09:15, Ercolino De Spiacico wrote:<br>
> It seems like enabling TFTP like:<br>
> <br>
> enable-tftp<br>
> tftp-root=/mnt/usb/TFTP<br>
> dhcp-boot=pxelinux.0,,192.168.0.1<br>
> <br>
> But experiencing an system storage issue (usb failure, unable to mount,<br>
> etc) takes the full dnsmasq down e.g. prevent from running at all<br>
> <br>
> Can I suggest for dnmasq to take a softer approach when this happens and<br>
> just skip the TFTP process execution rather than affect all the other<br>
> internal services like DHCP and DNS?<br>
<br>
<br>
This is much easier said than done, because file read/write can't be<br>
done in a non-blocking way in Unix/Linux. AFAIK all ordinary files are<br>
by definition  non-blocking, and if they do block on the underlying<br>
device, that's just tough; there's no way to get your process scheduled<br>
again until the drive returns data.<br>
<br>
I think the lesson from this is: don't put any files dnsmasq accesses<br>
(tftp sources, DHCP lease file, log files, configuration files) on<br>
devices that may go away: copy the data to an internal drive.<br>
<br>
> <br>
> More than else it's that "external factor" that sucks in this situation.<br>
<br>
<br>
Agreed, and your message will lie in the list archive as a warning to<br>
anyone else tripping over the same gotcha. That's a good thing.<br>
<br>
<br>
Cheers,<br>
<br>
<br>
Simon.<br>
<br>
> <br>
> Thanks<br>
> <br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
> <br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank" rel="noreferrer">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Dnsmasq-discuss Digest, Vol 178, Issue 30<br>
************************************************<br>
</blockquote></div>