<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" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0">What I did to test this was to add "<span>option:router,10.243.0.1</span>" to a new option file.</p>
<p style="margin-top:0; margin-bottom:0">Which is re-read by dnsmasq</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I start a dhclient that I'm testing with, output in console of dnsmasq indicate that router entry is part of response (also seen in dhcpdump of package)</p>
<p style="margin-top:0; margin-bottom:0">I stop the dhclient and remove the <span style="font-size: 12pt;">config file with this option and send SIGHUP to pid for dnsmasq</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;">Then start the dhclient again and still see the router entry being sent.</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;">Also tried same flow but comment out the option:router line instead of removing the file, which gave same result.</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;">Br,</span></p>
<p style="margin-top:0; margin-bottom:0"><span style="font-size: 12pt;">Fredrik</span></p>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" disabled="true" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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 00:36<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">Sending SIGHUP _should_ force all options to be deleted and re-read.<br>
<br>
When you say the entries are not removed, how are you measuring this?<br>
It's quite likely that a DHCP client, having been sent an option, will<br>
continue you using it whilst the least is renewed, even if the DHCP<br>
server stops sending the option in renewals.<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
<br>
<br>
On 05/03/18 15:58, Lindgren Fredrik wrote:<br>
> Hi,<br>
> <br>
> <br>
> I'm using the option: "dhcp-optsdir=/etc/dnsmasq.d/opts/" in<br>
> dnsmasq.conf file<br>
> <br>
> This works fine when I add or change options.<br>
> <br>
> Problem I'm having is when I remove a entry in a options file or remove<br>
> a file completely (include sending SIGHUP to process)<br>
> <br>
> Then entries aren't removed<br>
> <br>
> Is this expected behavior or am I missing some option to dnsmasq?<br>
> <br>
> <br>
> cmd line to start dnsmasq: "/usr/sbin/dnsmasq -x<br>
> /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -k -8 -"<br>
> <br>
> Version is: Dnsmasq version 2.75 (provided with ubuntu 16.04)<br>
> <br>
> <br>
> Br,<br>
> <br>
> Fredrik<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="LPlnk375968" tabindex="-1" disabled="true" previewremoved="true">
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
<div id="LPBorder_GT_15204057653880.6814453662461426" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="LPContainer_15204057653840.9761093974555637" cellspacing="0" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px dotted rgb(200,200,200); border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="TextCell_15204057653850.5024067134388124" colspan="2" style="vertical-align: top; padding: 0px; display: table-cell; position: relative;">
<div id="LPRemovePreviewContainer_15204057653850.36498643870205005"></div>
<div id="LPTitle_15204057653850.09157625335736141" style="top:0px; color:rgb(0,1,255); font-weight:400; font-size:21px; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height:21px">
<a id="LPUrlAnchor_15204057653860.2954638699488956" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank" tabindex="-1" disabled="true" style="text-decoration:none">Dnsmasq-discuss Info Page</a></div>
<div id="LPMetadata_15204057653860.10549936634541068" style="margin:10px 0px 16px; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_semibold,"Segoe UI Semibold","Segoe WP Semibold","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:14px">
lists.thekelleys.org.uk</div>
<div id="LPDescription_15204057653870.8619324189470243" style="display:block; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_semibold,"Segoe UI Semibold","Segoe WP Semibold","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:20px; max-height:100px; overflow:hidden">
A list for discussion about the dnsmasq DNS and DHCP server. Configuration, bugs and development. To control spam, only subscribers are allowed to post to the list.</div>
</td>
</tr>
</tbody>
</table>
</div>
<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="LPlnk430468" tabindex="-1" disabled="true" previewremoved="true">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
<div id="LPBorder_GT_15204057653960.8702046670855812" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="LPContainer_15204057653930.22206939284203098" cellspacing="0" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px dotted rgb(200,200,200); border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="TextCell_15204057653950.032316030603338985" colspan="2" style="vertical-align: top; padding: 0px; display: table-cell; position: relative;">
<div id="LPRemovePreviewContainer_15204057653950.060686916151791115"></div>
<div id="LPTitle_15204057653950.41241259833102983" style="top:0px; color:rgb(0,1,255); font-weight:400; font-size:21px; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height:21px">
<a id="LPUrlAnchor_15204057653960.17221329287688425" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank" tabindex="-1" disabled="true" style="text-decoration:none">Dnsmasq-discuss Info Page</a></div>
<div id="LPMetadata_15204057653960.9951511296961042" style="margin:10px 0px 16px; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_semibold,"Segoe UI Semibold","Segoe WP Semibold","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:14px">
lists.thekelleys.org.uk</div>
<div id="LPDescription_15204057653960.05998751763024557" style="display:block; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_semibold,"Segoe UI Semibold","Segoe WP Semibold","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:20px; max-height:100px; overflow:hidden">
A list for discussion about the dnsmasq DNS and DHCP server. Configuration, bugs and development. To control spam, only subscribers are allowed to post to the list.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>