[Dnsmasq-discuss] lost feature in 2.57 update (FreeBSD)
Simon Kelley
simon at thekelleys.org.uk
Tue Mar 15 21:38:38 GMT 2011
B. Cook wrote:
> Hmm,
>
> I guess I need to retract my initial statement..
>
> I would have to say it was 2.56 which caused the problem.
>
> I have since updated to 2.57 and uncommented my dhcp-host=pcsd-0000 and
> have no errors.
>
> So I guess its working; will have to check to make sure but..
>
>
>
> Second question
>
> If I already have:
>
> dhcp-ignore=#known
>
> would I have to add a second entry:
>
> dhcp-ignore=#known
> dhcp-ignore=tag:blacklist
>
> or can I combine them?
>
> dhcp-ignore=#known,tag:blacklist
No, those two examples do _different things.
the first ignores a client which is not know OR blacklisted, the second
ignores a client which is not known AND blacklisted.
Since a client has to be known to get blacklisted, the second isn't
useful, it has no effect.
>
> I was reading through the config and I know I've seen that explained
> before but just can't seem to find it again to confirm..
>
>
> Found it dnsmasq.conf.example..
>
> # Never offer DHCP service to a machine whose Ethernet
> # address is 11:22:33:44:55:66
> #dhcp-host=11:22:33:44:55:66,ignore
>
> # Ignore any clients which are specified in dhcp-host lines
> # or /etc/ethers. Equivalent to ISC "deny unknown-clients".
> # This relies on the special "known" tag which is set when
> # a host is matched.
> #dhcp-ignore=tag:!known
>
>
> Hmm,
>
> Why does my #known do the same thing? And the example says !known..
>
> (odd..)
>
>
The syntax changed to make is clearer. The old syntax (# for NOT) is
still supported for old config files, but the documentation was updated
to reflect the new, prefered way of doing things.
Cheers,
Simon.
> On 3/15/11 12:20 PM, Simon Kelley wrote:
>> B. Cook wrote:
>>> I have ignore set for my dhcpd server.
>>>
>>> dhcp-ignore=#known
>>>
>>> and what I used to have was an entry for a *machine name* (not a mac).
>>>
>>> dnsmasq would allow that machine name on, and I had a script that would
>>> parse the logs and add that special machine names MAC to the 'allowed list'
>>>
>>> with 2.57 (updated from 2.55) it sees that machine name as an error.
>>>
>>> What can I do to possibly get that 'feature' back?
>>>
>>> dhcp-host=pcsd-00000
>>>
>>>
>> Do you mean that 2.57 spits an error when it encounters
>> dhcp-host=pcsd-00000
>>
>> in the configuration file? Any particular error message?
>>
>>> second question.
>>>
>>> Unrelated to the first one.
>>>
>>> If I have a machine pcsd-12345 is there a way that I can *deny* that
>>> machine name?
>>>
>>
>> dhcp-host=pcsd-12345,set:blacklist
>>
>> dhcp-ignore=tag:blacklist
>>
>>
>> Cheers,
>>
>> Simon.
>>
>>> Thanks in advance.
>>>
>>> _______________________________________________
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss at lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>>
>
> _______________________________________________
> 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