[Dnsmasq-discuss] dnsmasq

Simon Kelley simon at thekelleys.org.uk
Fri Aug 27 21:41:40 BST 2010


Sergio Belkin wrote:
> Hi,
> 
> I have the /etc/config/dhcp as follows:
> 
> Code:
> 
> config 'dnsmasq'
>         option 'domainneeded' '1'
>         option 'boguspriv' '1'
>         option 'filterwin2k' '0'
>         option 'localise_queries' '1'
>         option 'local' '/lan/'
>         option 'domain' 'lan'
>         option 'expandhosts' '1'
>         option 'nonegcache' '0'
>         option 'authoritative' '1'
>         option 'readethers' '1'
>         option 'leasefile' '/tmp/dhcp.leases'
>         option 'resolvfile' '/tmp/resolv.conf.auto'
> 
> config 'dhcp' 'lan'
>         option 'interface' 'lan'
>         option 'start' '100'
>         option 'limit' '150'
>         option 'leasetime' '12h'
> #       list 'dhcp_option' 'vendor:MSFT,2,1i'
> 
> #I've set that because of
> http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example (Vista
> clients)
> config 'vendorclass'
>         option classifier MSFT
>         option name     lan
>         list   'dhcp_option' 'vendor:MSFT,2,li'
> 
> config 'dhcp' 'wan'
>         option 'interface' 'wan'
>         option 'ignore' '1'
>         option 'dynamicdhcp' '0'
> 
> I wanted to add some settings using /etc/dnsmasq.conf , so I my
> /etc/dnsmasq.conf is as follows:
> 
> Code:
> 
> #The following if because of violation of dhcp standard of Windows Vista...
> dhcp-vendorclass=set:red,Linux
> dhcp-vendorclass=set:yellow,Mac
> dhcp-vendorclass=set:gray,MSFT
> dhcp-broadcast=tag:gray
> 
> But when I look into /proc/$(pgrep dnsmasq)/cmdline
> 
> I see:
> 
> Code:
> 
> /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -l
> /tmp/dhcp.leases -r /tmp/resolv.conf.auto
> --dhcp-range=lan,192.168.89.100,192.168.89.250,255.255.255.0,12h -2
> 'eth0.2'
> 
> It say nothing about
> 
> config 'vendorclass'
>         option classifier MSFT
>         option name     lan
>         list   'dhcp_option' 'vendor:MSFT,2,li'
> 
> or about:
> 
> dhcp-vendorclass=set:red,Linux
> dhcp-vendorclass=set:yellow,Mac
> dhcp-vendorclass=set:gray,MSFT
> dhcp-broadcast=tag:gray
> 
> 
> Is that right ?
> 
>

Yes, I think so. The options in /etc/dnsmasq.conf certainly won't appear
on the command line, but they will be used by dnsmasq.


Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list