Re: [Dnsmasq-discuss] Ignore DHCP request based on "client name"?

2018-08-08 Thread Simon Kelley
dhcp-match does a substring match, not a regexp or wildcard one: the * character is not special. Your attempts are therefore looking for a substring "android*" in the option and failing. Remove the * and all will be well, I think. Cheers, Simon. On 07/08/18 14:03, Hugo Segovia wrote: > El

[Dnsmasq-discuss] subdomains and dhcp

2018-08-08 Thread Christoph Gaitzsch
Hi, I want to accomplish the following: My domain set in dnsmasq.conf is "domain.net". I have "normal" hosts e. g. host.domain.net and I have hosts like this: site.test.domain.net site.stag.domain.net site.prod.domain.net I have configured one host to send the FQDN via dhclient. dnsmasq

Re: [Dnsmasq-discuss] Ignore DHCP request based on "client name"?

2018-08-08 Thread Simon Kelley
On 08/08/18 13:37, Hugo Segovia wrote: > El Wed, 8 Aug 2018 10:31:01 +0100 > Simon Kelley escribió: >> dhcp-match does a substring match, not a regexp or wildcard one: the * >> character is not special. Your attempts are therefore looking for a >> substring "android*" in the option and failing.

Re: [Dnsmasq-discuss] subdomains and dhcp

2018-08-08 Thread Simon Kelley
You can do what you want, but there are limitations. You'll need to split your test, stag and prod hosts 1into different IP address ranges. This will probably mean giving them fixed addresses. Then declare the various domains and the subnets associated with them, for example.

Re: [Dnsmasq-discuss] Ignore DHCP request based on "client name"?

2018-08-08 Thread Hugo Segovia
El Wed, 8 Aug 2018 10:31:01 +0100 Simon Kelley escribió: > dhcp-match does a substring match, not a regexp or wildcard one: the * > character is not special. Your attempts are therefore looking for a > substring "android*" in the option and failing. > > Remove the * and all will be well, I