[Dnsmasq-discuss] What is the order of resolution of wildcards?

Simon Kelley simon at thekelleys.org.uk
Mon Dec 15 22:33:58 GMT 2008


Brent Cook wrote:
> Say there are 2 static DHCP entries:
> 
> dhcp-host=00:ff:aa:00:01:1c,net:host1
> 
> dhcp-host=00:ff:aa:00:*:*,net:hosts
> 
> Are MAC address matches longest-match, or is it first match?

If more than one dhcp-host matches, it's not defined which is used, 
which makes wildcards in dhcp-host not very useful.

The more-useful is dhcp-mac, where many addresses can match, so in your 
example:

dhcp-mac=host1,00:ff:aa:00:01:1c

dhcp-mac=hosts,00:ff:aa:00:*:*

will set both tags for 00:ff:aa:00:01:1c and only "hosts" for other 
00:ff:aa:00 mac addresses.


HTH

Simon.

> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list