[Dnsmasq-discuss] settings options per host?

Simon Kelley simon at thekelleys.org.uk
Thu Jul 31 13:32:53 BST 2008


B. Cook wrote:
> 
> On Jul 31, 2008, at 8:15 AM, Simon Kelley wrote:
> 
>> B. Cook wrote:
>>>
>>> This would be the isc entries ..
>>> host    osxserver    { hardware ethernet 00:17:f2:0f:11:22; option
>>> routers 10.20.0.23; }
>>>
> 
>>> host pcsdsnap    { hardware ethernet    00:60:08:2a:11:22;
>>> fixed-address 10.20.16.11; option routers 10.20.16.128;}
>>>
>>> What would this look like in dnsmasq?
>>>
>>
>> It's a two stage process: first set a tag when the host is seen, then
>> control the options sent based on that tag. Something like
>>
>> dhcp-host=00:17:f2:0f:11:22,10.20.16.11,net:osxserver
>> dhcp-option=osxserver,option:router,10.20.16.128
>>
> 
> hmm,
> 
> Only asking .. does it have to be:
> 
> osxserver,option:router,10.20.16.128
> 
> or could it also be
> 
> osxserver,3,10.20.16.128
> 
> ?
> 
> I agree the option:router would be clearer and more readable.. but I am
> trying to understand if those options are interchangeable with the other
> options as well?
> 

Either, the option:<optionname> and option-number forms are
interchangeable.

dnsmasq -w dhcp

Will give you a list of the options which dnsmasq knows a name for.
Anything else has to use the number form..

Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list