Re: [Dnsmasq-discuss] Script dnsmasq's IP generation

2022-05-25 Thread me
Hello Geert. I'd like to confirm that the solutions posted by you and Petr worked perfectly. Sorry for my late reply, I didn't receive the email from the mailing list (I assume I changed my settings wrongly), and Geert's email got caught up in the Gmail spam filter. Thanks to you both, foxtdev

Re: [Dnsmasq-discuss] Script dnsmasq's IP generation

2022-05-16 Thread Geert Stappers via Dnsmasq-discuss
Hello you, (Cc to dnsmasq mailinglist) On Fri, May 13, 2022 at 03:58:30PM +0200, Petr Menšík wrote: > On 5/12/22 16:32, m...@foxt.dev wrote: > > Hello, > >    Is it possible to script dnsmasq's IP generation. I'm aware it's > > possible to run a script when dnsmasq generates a lease, but as far

Re: [Dnsmasq-discuss] Script dnsmasq's IP generation

2022-05-13 Thread Petr Menšík
I think you should be able to use dhcp-mac to assign tags, then use separate dhcp-range only for selected tags. If you are able to create patterns matching this way, no external script would be required. dhcp-mac=set:special,AA:BB:CC:*:*:* dhcp-range=tag:special,192.168.2.2,192.168.2.255

[Dnsmasq-discuss] Script dnsmasq's IP generation

2022-05-12 Thread me
Hello, Is it possible to script dnsmasq's IP generation. I'm aware it's possible to run a script when dnsmasq generates a lease, but as far as I'm aware it's not possible to send data from the script back into dnsmasq. My ideal use case is the ability to use a different IP range for