<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am having an issue with dnsmasq version 2.55. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">First a little background about when the issue occurs: In our router, we have both an ether wan port and a 3G dongle. If the wan cable is plugged in, the connectivity to the internet is via the wan cable. However, if the wan cable is
unplugged and there is a dongle plugged into the router, connectivity to the internet now switches to the 3g dongle. In essence a switchover occurs. What we have found is that the dnsmasq’s dns sometimes fails after the switchover. The /etc/resolv.conf
file in this case remains the same before and after the switchover. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have invoked dnsmasq with the debugging option –q, and I see that at time 22:09:33 a message “no servers found in /etc/resolv.conf, will retry”. Presumably this is because at the time dnsmasq found that it could not connect to the google
dns server 8.8.8.8, probably while the connection was being switched over. For nearly an hour according to the dnsmasq.log file, I see various queries to dnsmasq asking for IP addresses associated with the given URLs. Unfortunately, no response is given
to these queries. During this period after the switchover, I can ping the google dns server at 8.8.8.8 and it responds; I can NOT ping google.com as it fails to resolve the IP address for google.com. I can also ping other IP addresses successfully after
the switchover as long as I ping with the IP address and not the URL. Nslookup consistently fails to resolve the IP addresses. So it is pretty certain that we have connectivity to the internet, just no DNS server to help return the IP addresses for the URLS.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now back to the dnsmasq.log, at timestamp 23:08:02 we finally see the message “reading /etc/resolv.conf”. After this dnsmasq is now successfully answering the queries from the clients, resolving their addresses once again. From my perspective,
it appears that there is something wrong with dnsmasq not doing the retry to connect to the upstream dns server (8.8.8.8) in a timely manner. I have now seen this anomaly twice, both times with a delay of almost exactly an hour for the dnsmasq to come back
to life. The immediate question is what is driving how often does dnsmasq do the retry? I would think that if the upstream dns server is not accessible, it would retry and a fairly short time interval… but alas, I don’t see this in the dnsmasq.log file. How
often should dnsmasq be retrying? And what would do you think would make it retry at almost exactly an hour later?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is this a known issue? I have looked at the CHANGELOG and I see only a few changes that from their description might be related… changes in version 2.72:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">version 2.72<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Fix race condition which could lock up dnsmasq when an
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> interface goes down and up rapidly. Thanks to Conrad
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Kostecki for helping to chase this down.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Fix bug which caused dnsmasq to become unresponsive if it
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> failed to send packets due to a network interface disappearing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> Thanks to Niels Peen for spotting this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal">But alas, I don’t know if these fixes have anything to do with the issue I am seeing; there is not enough info here to know how the issues manifested themselves.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have attached the dnsmasq.log file for you review.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Please let me know what you think. I need to get to the bottom of this asap.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best Regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">John Knight<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
__________________________________________________________________ Confidential This e-mail and any files transmitted with it are the property of Belkin International, Inc. and/or its affiliates, are confidential, and are intended solely for the use of the
individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer.
Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. Pour la version française: http://www.belkin.com/email-notice/French.html Für die deutsche Übersetzung: http://www.belkin.com/email-notice/German.html
__________________________________________________________________
</body>
</html>