[Dnsmasq-discuss] patch proposal: getent support for ethers
Simon Kelley
simon at thekelleys.org.uk
Fri Jun 26 16:04:25 BST 2009
Justin McAteer wrote:
> Gents,
>
> We are wanting to do some database integration with dnsmasq here as
> well. I saw there was a patch that provided MySQL support for 2.20,
> but it has not been maintained. Also, there was another patch
> mentioned elsewhere (I believe against a newer version), but it is not
> available.
>
> I have considered doing some type of FIFO with the text files and a
> script as well, but I am afraid that type of solution may be too
> fragile for my deployment environment.
>
> Does anyone have any insight into what the issues with the previous
> MySQL patch was, or if there are any good shortcuts to getting basic
> database integration into dnsmasq?
>
> Cheers,
> Justin McAteer
>
There's already code which allows a running dnsmasq process to re-read
dhcp-host-like configuration from a file when dnsmasq sees a signal.
There's already a DBus control interface.
An addition of DBus methods which allow dhcp-host-like configuration
to be supplied would seem to be a winner for this, IMHO.
That handles configuration: for storing the lease database, the
dhcp-script and leasefile-ro options already allow an arbitrary database
to replace the leases file. It's been used by DD-WRT to keep the leases
in NVRAM, the scripts are in /contrib.
Cheers,
Simon.
More information about the Dnsmasq-discuss
mailing list