[Dnsmasq-discuss] dyndns-style addition of names

richardvoigt at gmail.com richardvoigt at gmail.com
Mon Apr 9 07:25:58 BST 2007

On 4/2/07, Simon Kelley <simon at thekelleys.org.uk> wrote:
> Aaron D. Brooks wrote:
> >     - dbus may be able to allow a different user to send
> >       a "ClearCache"  method call to dnsmasq.
> >
> I'm not sure about this, but it looks like it may be possible by adding
> suitable XML to   /etc/dbus-1/system.d/dnsmasq.conf
> Assuming that permissions are a soluble problem, it might make sense to
> add a DBus method to add host records directly. The main problem with
> this is that they would be lost over a dnsmasq restart, unless there's
> another daemon somewhere which stores the information and re-sends to
> dnsmasq when it starts up and send the "Up" signal.
> This is a general problem: I'd quite like to provide a DBus method to
> add MAC address/name/IP records for DHCP, but that breaks for the same
> reason.
> Maybe a solution would be to add code to make such configuration
> persistent by storing it in a file. That would mean that server
> addresses/domains and possibly DNS host records and DHCP host records
> could be set by DBus, and would remain until explicitly cleared.
> Does that sound sensible?

Instead of adding code to persist the configuration, why not use the
existing external script capability, and provide an example script?

Then a dbus method to cause dnsmasq to re-run its external script to
learn any reservations, as it does during startup.

> Cheers,
> Simon.
> _______________________________________________
> 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