core: add separate QubesDB entry for primary DNS address

Fixes QubesOS/qubes-issues#1817
This commit is contained in:
Marek Marczykowski-Górecki 2016-03-07 03:54:21 +01:00
parent bc240bd742
commit 65255626e2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1105,6 +1105,7 @@ class QubesVm(object):
if self.is_netvm():
self.qdb.write("/qubes-netvm-gateway", self.gateway)
self.qdb.write("/qubes-netvm-primary-dns", self.gateway)
self.qdb.write("/qubes-netvm-secondary-dns", self.secondary_dns)
self.qdb.write("/qubes-netvm-netmask", self.netmask)
self.qdb.write("/qubes-netvm-network", self.network)
@ -1113,6 +1114,7 @@ class QubesVm(object):
self.qdb.write("/qubes-ip", self.ip)
self.qdb.write("/qubes-netmask", self.netvm.netmask)
self.qdb.write("/qubes-gateway", self.netvm.gateway)
self.qdb.write("/qubes-primary-dns", self.netvm.gateway)
self.qdb.write("/qubes-secondary-dns", self.netvm.secondary_dns)
tzname = self.get_timezone()