[Dnsmasq-discuss] Not sure how to configure dnsmasq via dbus and cli tools

samlt samuel.lethiec at intelunix.fr
Wed Aug 13 11:35:01 BST 2014


Hello,

I'm not sure how to use the dnsmasq dbus interface via dbus-send or
qdbus (which I've read should be easier).

I've no previous experience with dbus, so I may be missing something
entirely obvious to you.

$ qdbus --system
...
 uk.org.thekelleys.dnsmasq

$ qdbus --system uk.org.thekelleys.dnsmasq
Error: org.freedesktop.DBus.Error.AccessDenied Rejected send message, 2
matched rules; type="method_call", sender=":1.504" (uid=1000 pid=22569
comm="qdbus --system  uk.org.thekelleys.dnsmasq ")
interface="org.freedesktop.DBus.Introspectable" member="Introspect"
error name="(unset)" requested_reply="0"
destination="uk.org.thekelleys.dnsmasq" (uid=0 pid=21250
comm="/usr/sbin/dnsmasq --no-resolv --keep-in-foreground")

$ sudo qdbus --system uk.org.thekelleys.dnsmasq
Error: org.freedesktop.DBus.Error.NoReply
Did not receive a reply. Possible causes include: the remote application
did not send a reply, the message bus security policy blocked the reply,
the reply timeout expired, or the network connection was broken.


The thing is that I'm not even sure my problem is directly related to
dnsmasq. When I lookup for the "Rejected" error above, I find stuffs
about consolekit, but I though consolekit functionnality was now offered
by systemd ("superseded by systemd" according to wikipedia). So I am
kind of lost.

Help appreciated!

background: I'm using dnsmasq with network manager(nm)on fedora 20. And
when I connect to some VPN I'd like to add something like:
server=/myvpn.domain/1.2.3.4
To dnsmasq config.

Thanks:)





More information about the Dnsmasq-discuss mailing list