[Dnsmasq-discuss] Pulling DHCP leases from an external script?

richardvoigt at gmail.com richardvoigt at gmail.com
Fri Oct 5 19:39:52 BST 2012


Non-authoritative summary:

Data goes from the dnsmasq server, to an dnsmasq helper process with
limited privileges, to the script.

No data comes back from the script, except during the startup phase.  This
is a security feature.

On Wed, Oct 3, 2012 at 2:14 PM, Brian Rak <brak at gameservers.com> wrote:

> I'm trying to set up a DHCP server so that on any request for a new lease
> I can execute a script and have the script return an IP address (and other
> information).
>
> Is this something that is currently possible with dnsmasq?  From reading
> the man page, I can't tell if I will get this behaviour with --dhcp-script
> --leasefile-ro.
>
> Basically, it would be impossible for me to specify all the possible DHCP
> leases at startup, but when a lease request is received I would be able to
> determine what IP to assign.
>
> ______________________________**_________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.**thekelleys.org.uk<Dnsmasq-discuss at lists.thekelleys.org.uk>
> http://lists.thekelleys.org.**uk/mailman/listinfo/dnsmasq-**discuss<http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20121005/3cde6efb/attachment.html>


More information about the Dnsmasq-discuss mailing list