summaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-10-24 20:41:45 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-12-12 22:06:23 +0100
commite3c67177ac7234923f53c51473f77df8a2cb0f20 (patch)
tree8029a87a657f8b8ca888aec1043634a780b9e565 /introspection
parent14105ece56b65fed64bade4013b105f7adaad27b (diff)
downloadNetworkManager-e3c67177ac7234923f53c51473f77df8a2cb0f20.tar.gz
dns: export current configuration through D-Bus
It is useful to let clients retrieve the current DNS configuration, which can be displayed to users or used (together with dns=none) to implement custom DNS configuration logic through external tools.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/org.freedesktop.NetworkManager.DnsManager.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/introspection/org.freedesktop.NetworkManager.DnsManager.xml b/introspection/org.freedesktop.NetworkManager.DnsManager.xml
index 8cc3eba21d..3a0c757bdc 100644
--- a/introspection/org.freedesktop.NetworkManager.DnsManager.xml
+++ b/introspection/org.freedesktop.NetworkManager.DnsManager.xml
@@ -22,5 +22,18 @@
-->
<property name="RcManager" type="s" access="read"/>
+ <!--
+ Configuration:
+
+ The current DNS configuration represented as an array of
+ dictionaries. Each dictionary has the "nameservers",
+ "priority" keys and, optionally, "interface" and "vpn".
+ "nameservers" is the list of DNS servers, "priority" their
+ relative priority, "interface" the interface on which these
+ servers are contacted, "vpn" a boolean telling whether the
+ configuration was obtained from a VPN connection.
+ -->
+ <property name="Configuration" type="aa{sv}" access="read"/>
+
</interface>
</node>