We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d626b commit 78c36d2Copy full SHA for 78c36d2
network/qubes-setup-dnat-to-ns
@@ -48,6 +48,7 @@ def get_dns_resolv_conf():
48
return nameservers
49
50
def get_dns_resolved():
51
+ dns = []
52
try:
53
bus = dbus.SystemBus()
54
except dbus.exceptions.DBusException as s:
@@ -60,6 +61,9 @@ def get_dns_resolved():
60
61
dns = resolve1.Get('org.freedesktop.resolve1.Manager',
62
'DNS',
63
dbus_interface='org.freedesktop.DBus.Properties')
64
+ if dns is Nothing:
65
+ return get_dns_resolv_conf()
66
+
67
68
error = s.get_dbus_name()
69
if error in (
0 commit comments