[Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options problem

Simon Kelley simon at thekelleys.org.uk
Fri Mar 9 09:46:47 GMT 2018


Great. Thanks for your help with this.

Cheers,

Simon.


On 09/03/18 07:40, Lindgren Fredrik wrote:
> Thanks.
> 
> 
> Have downloaded latest from your repo and tested it on my setup as well
> 
> 
> /Fredrik
> 
> ------------------------------------------------------------------------
> *Från:* Simon Kelley <simon at thekelleys.org.uk>
> *Skickat:* den 8 mars 2018 19:53
> *Till:* Lindgren Fredrik; dnsmasq-discuss at lists.thekelleys.org.uk
> *Ämne:* Re: SV: [Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options
> problem
>  
> Found the problem. Patch here.
> 
> http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=4f7bb57e9747577600b3d385e0e3418ec17e73e0
> 
> 
> Thanks for reporting this.
> 
> 
> Cheers,
> 
> Simon.
> 
> 
> On 07/03/18 15:38, Lindgren Fredrik wrote:
>> OK.
>> 
>> 
>> Here are the config options I use in case it has any impact
>> 
>> 
>> dnsmasq.conf:
>> 
>> port=0
>> no-resolv
>> no-poll
>> interface=eq-mgmt
>> bind-interfaces
>> no-hosts
>> dhcp-range=10.243.0.50,10.243.255.254,255.255.0.0,10m
>> dhcp-option=3
>> dhcp-option=12
>> dhcp-option=option:ntp-server,10.243.0.2,10.243.0.3
>> enable-tftp
>> tftp-root=/var/tftpboot
>> tftp-secure
>> dhcp-script=/bin/echo
>> log-dhcp
>> dhcp-optsdir=/etc/dnsmasq.d/opts/
>> 
>> 
>> Adding/removing line "option:router,10.243.0.1" to option file in the
>> opts dir.
>> 
>> 
>> Br,
>> Fredrik
>> 
>> ------------------------------------------------------------------------
>> *Från:* Dnsmasq-discuss
>> <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> för Simon Kelley
>> <simon at thekelleys.org.uk>
>> *Skickat:* den 7 mars 2018 13:43
>> *Till:* dnsmasq-discuss at lists.thekelleys.org.uk
>> *Ämne:* Re: [Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options problem
>>  
>> OK, sounds like there may be a bug. I'll try and reproduce this in the
>> next day or two.
>> 
>> Cheers,
>> 
>> Simon.
>> 
>> On 07/03/18 11:39, Lindgren Fredrik wrote:
>>> I'm doing verification after removal in same way as when I add it, hence
>>> debug output from dnsmasq process and dhcpdump capture
>>> 
>>> 
>>> /Fredrik
>>> 
>>> 
>>> ------------------------------------------------------------------------
>>> *Från:* Dnsmasq-discuss
>>> <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> för Andy Hawkins
>>> <andy at gently.org.uk>
>>> *Skickat:* den 7 mars 2018 11:13
>>> *Till:* dnsmasq-discuss at lists.thekelleys.org.uk
>>> *Ämne:* Re: [Dnsmasq-discuss] Dnsmasq dhcp-optsdir remove options problem
>>>  
>>> Hi,
>>> 
>>> In article
>>> <HE1PR0401MB2313F920FEC799628C3694CA8CD80 at HE1PR0401MB2313.eurprd04.prod.outlook.com>,
>>>            Lindgren Fredrik<Fredrik.Lindgren at tieto.com> wrote:
>>>> What I did to test this was to add "option:router,10.243.0.1" to a new opti=
>>>> on file.
>>>>
>>>> Which is re-read by dnsmasq
>>>>
>>>>
>>>> I start a dhclient that I'm testing with, output in console of dnsmasq indi=
>>>> cate that router entry is part of response (also seen in dhcpdump of packag=
>>>> e)
>>>>
>>>> I stop the dhclient and remove the config file with this option and send SI=
>>>> GHUP to pid for dnsmasq
>>>>
>>>> Then start the dhclient again and still see the router entry being sent.
>>> 
>>> When you say "still see the router entry being sent" are you just checking
>>> the resulting IP configuration on the client, or are you actually capturing
>>> the DHCP response with Wireshark or similar?
>>> 
>>> If you haven't captured the actual response on the wire, that'd be my next
>>> step to see if it's the client that's somehow remembering the information.
>>> 
>>> Andy
>>> 
>>> 
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> Dnsmasq-discuss Info Page
> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> lists.thekelleys.org.uk
> 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.
> 
> 
> 
>>> Dnsmasq-discuss Info Page
>>> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> Dnsmasq-discuss Info Page
> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> lists.thekelleys.org.uk
> 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.
> 
> 
> 
>>> lists.thekelleys.org.uk
>>> 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.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> Dnsmasq-discuss Info Page
> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> lists.thekelleys.org.uk
> 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.
> 
> 
> 
>>> 
>> 
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> Dnsmasq-discuss Info Page
> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> lists.thekelleys.org.uk
> 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.
> 
> 
> 
> 



More information about the Dnsmasq-discuss mailing list