[Dnsmasq-discuss] DBus support

Howard Chu hyc at symas.com
Sat Sep 6 21:48:57 BST 2008


Simon Kelley wrote:
> Howard Chu wrote:
>> I've just written a patch for NetworkManager to update dnsmasq's server list
>> using DBus. You can find it here
>> http://mail.gnome.org/archives/networkmanager-list/2008-September/msg00042.html
>>
> Cool!
>
>> However, it seems there's a missing detail here - it's possible to run
>> multiple instances of dnsmasq on the same machine (using separate
>> listen-addresses, etc.) but apparently only one of them can register as a DBus
>> listener. Is that correct? I guess it's not likely that multiple instances
>> would be running on a machine with NetworkManager, so perhaps this is all
>> irrelevant. Just wanted to make sure I wasn't missing something obvious.
>>
>> E.g., if in fact you can have multiple dnsmasq instances listening on DBus,
>> how should NetworkManager decide which one to send nameserver updates to?
>
> The DBus service and path are hard-coded (they're specified in
> src/config.c) I guess that means that only one instance can be running,
> with dbus enabled and the "which one gets updated" question is moot.
>
> The usual reason to run multiple instances of dnsmasq is to provide
> services to virtual machines, libvirt does this. These instances will
> probably not have --enable-dbus set in their configuration, so no problem.
>
> That's my hazy understanding. If it's wrong and you need more run-time
> configurability of the DBus code in dnsmasq, just shout (or submit a patch).

Thanks. Given the explanation re: virtual machines, this all seems fine to me 
as-is.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/



More information about the Dnsmasq-discuss mailing list