I'd like to interact with the dnsmasq instance spawned by NetworkManager via it's dbus-Interface. I couldn't find the address, object path etc., the only thing I could dig up is: http://www.thekelleys.org.uk/dnsmasq/docs/DBus-interface

I already tried

gdbus call -y -d org.freedesktop.NetworkManager -o /org/freedesktop/NetworkManager -m org.freedesktop.NetworkManager.dnsmasq.GetVersion

but the method is unknown hence the method name is wrong.


I figured this out recently thanks to qdbus which helpfully lists all available paths and methods.

> sudo gdbus call -y -d org.freedesktop.NetworkManager.dnsmasq \
     -o /uk/org/thekelleys/dnsmasq \
     -m org.freedesktop.NetworkManager.dnsmasq.GetVersion

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.