[Dnsmasq-discuss] dhcp-host matching question
Simon Kelley
simon at thekelleys.org.uk
Fri Oct 11 15:48:50 BST 2013
On 11/10/13 15:41, Maule Mark wrote:
> If I have dhcp-host directives which can result in multiple host matches, which matches will be applied - all, just the first, just the most specific, etc.?
>
> For example, say I have the following in a dhcp-hostsfile:
>
> 00:21:28:A1:CA:3A,set:host1match,host1,172.30.80.129
>
> 00:21:28:A1:F3:F2,host2,172.30.80.128
>
> *:*:*:*:*:*,set:wildcardmatch
>
> When *3A issues a dhcp request, which tags will be set? host1match only, or host1match and wildcardmatch ?
>
> thanks
> Mark
>
>
host1match only.
Dnsmasq will find at most one dhcp-host line. It searches first for a
matching client-id/DUID, then an complete matching MAC address, then a
matching hostname, and finally the most specific wildcarded MAC address.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list