Discussion:
[Dnsmasq-discuss] Fwd: [PATCH] Add GetServers call to DBus API
Gabe 🍰 Krabbe
2018-06-11 10:43:09 UTC
Permalink
Hi -

It's currently impossible to tell which upstream DNS servers are in use by
dnsmasq; this is particularly irksome when they're controlled by
NetworkManager or similar (grepping for syslog messages doesn't count as
instrumentation...)

Here's a trivial implementation of a GetServes DBus call that returns the
servers/domains (formatted for re-use in --servers flags). Ideally, there'd
be a call like GetConfig or similar that dumps the entire active
configuration in config-file format...


Gabe
--
Do not think by infection, catching an opinion like a cold.
Simon Kelley
2018-06-12 15:46:44 UTC
Permalink
Happy to apply the patch in principle. However the patch as supplied has
unrelated changes to do with using the session, rather than system, bus
when in debug mode. If that's useful, could it become a separate patch,
which also updates the man page for the -d option. If not could it be
removed.


(Just to prove that we do try to read patches before applying them,
here at Dnsmasq Towers.)

Cheers,

Simon.
Post by Gabe 🍰 Krabbe
Hi -
It's currently impossible to tell which upstream DNS servers are in use
by dnsmasq; this is particularly irksome when they're controlled by
NetworkManager or similar (grepping for syslog messages doesn't count as
instrumentation...)
Here's a trivial implementation of a GetServes DBus call that returns
the servers/domains (formatted for re-use in --servers flags). Ideally,
there'd be a call like GetConfig or similar that dumps the entire active
configuration in config-file format...
Gabe
-- 
Do not think by infection, catching an opinion like a cold.
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...