<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">OK.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Here are the config options I use in case it has any impact</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">dnsmasq.conf:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>port=0</div>
<div>no-resolv</div>
<div>no-poll</div>
<div>interface=eq-mgmt</div>
<div>bind-interfaces</div>
<div>no-hosts</div>
<div>dhcp-range=10.243.0.50,10.243.255.254,255.255.0.0,10m</div>
<div>dhcp-option=3</div>
<div>dhcp-option=12</div>
<div>dhcp-option=option:ntp-server,10.243.0.2,10.243.0.3</div>
<div>enable-tftp</div>
<div>tftp-root=/var/tftpboot</div>
<div>tftp-secure</div>
<div>dhcp-script=/bin/echo</div>
<div>log-dhcp</div>
<div>dhcp-optsdir=/etc/dnsmasq.d/opts/</div>
<div><br>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Adding/removing line "<span>option:router,10.243.0.1" to option file in the opts dir.</span></p>
<div><br>
</div>
Br,
<div>Fredrik<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Från:</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> för Simon Kelley <simon@thekelleys.org.uk><br>
<b>Skickat:</b> den 7 mars 2018 13:43<br>
<b>Till:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Ämne:</b> Re: [Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options problem</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">OK, sounds like there may be a bug. I'll try and reproduce this in the<br>
next day or two.<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
On 07/03/18 11:39, Lindgren Fredrik wrote:<br>
> I'm doing verification after removal in same way as when I add it, hence<br>
> debug output from dnsmasq process and dhcpdump capture<br>
> <br>
> <br>
> /Fredrik<br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> *Från:* Dnsmasq-discuss<br>
> <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> för Andy Hawkins<br>
> <andy@gently.org.uk><br>
> *Skickat:* den 7 mars 2018 11:13<br>
> *Till:* dnsmasq-discuss@lists.thekelleys.org.uk<br>
> *Ämne:* Re: [Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options problem<br>
>  <br>
> Hi,<br>
> <br>
> In article<br>
> <HE1PR0401MB2313F920FEC799628C3694CA8CD80@HE1PR0401MB2313.eurprd04.prod.outlook.com>,<br>
>            Lindgren Fredrik<Fredrik.Lindgren@tieto.com> wrote:<br>
>> What I did to test this was to add "option:router,10.243.0.1" to a new opti=<br>
>> on file.<br>
>><br>
>> Which is re-read by dnsmasq<br>
>><br>
>><br>
>> I start a dhclient that I'm testing with, output in console of dnsmasq indi=<br>
>> cate that router entry is part of response (also seen in dhcpdump of packag=<br>
>> e)<br>
>><br>
>> I stop the dhclient and remove the config file with this option and send SI=<br>
>> GHUP to pid for dnsmasq<br>
>><br>
>> Then start the dhclient again and still see the router entry being sent.<br>
> <br>
> When you say "still see the router entry being sent" are you just checking<br>
> the resulting IP configuration on the client, or are you actually capturing<br>
> the DHCP response with Wireshark or similar?<br>
> <br>
> If you haven't captured the actual response on the wire, that'd be my next<br>
> step to see if it's the client that's somehow remembering the information.<br>
> <br>
> Andy<br>
> <br>
> <br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> Dnsmasq-discuss@lists.thekelleys.org.uk<br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" id="LPlnk61941" previewremoved="true">
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
> Dnsmasq-discuss Info Page<br>
> <<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" id="LPlnk97008" previewremoved="true">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>><br>
> lists.thekelleys.org.uk<br>
> A list for discussion about the dnsmasq DNS and DHCP server.<br>
> Configuration, bugs and development. To control spam, only subscribers<br>
> are allowed to post to the list.<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> Dnsmasq-discuss@lists.thekelleys.org.uk<br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" id="LPlnk261966" previewremoved="true">
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
> <br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
Dnsmasq-discuss@lists.thekelleys.org.uk<br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" id="LPlnk164737" previewremoved="true">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div>
</span></font></div>
</div>
</div>
</div>
</body>
</html>