[Dnsmasq-discuss] option 43 multiple options

Simon Kelley simon at thekelleys.org.uk
Tue May 3 14:50:39 BST 2011


Jan Kulhanek wrote:
> Hi folks,
> 
> the version I using of dnsmasq is 2.35.
> 
> My problem is with option 43.
> 
> I have to send 2 vendor-specific information via option 43.
> 
> I tried it in variouse ways, but it seems dnsmasq is ever sending just 
> the last option 43 it finds.
> 
> My config looks like this:
> 
> dhcp-option=vendor:,43,1,075369656D656E73
> dhcp-option=vendor:,43,3,323673646c703a2f2f3137322e33312e3230342e39353a3138343433
> 
> For my understanding this should send two vendor-specific-options (1 and 
> 3) if option 43 ist requested.
> 
> But it just sends one of them, the last one configured.
> 
> I tried also:
> 
> dhcp-option=vendor:,43,1075369656D656E73
> dhcp-option=vendor:,43,3323673646c703a2f2f3137322e33312e3230342e39353a3138343433
> 
> But this results in the same problem.
> 
> Did I missunderstood something?
> 

I didn't envisage that the vendor string would be empty when I wrote the
code, but it should work, I think. The first thing to do in fixing this
to get a newer version of dnsmasq: 2.35 is very old, and the code that
handles these options has been changed quite a lot since then. If it
still doesn't work with 2.57, turn on the log-dhcp option which will
make dnsmasq dump the options it is sending to the log: send us the
results of that and we'll go from there.

HTH

Simon.



More information about the Dnsmasq-discuss mailing list