Browse Source

libvirt xml: fix DNS address broadcasted by DHCP server

In R4.0 it is no longer the same as the gateway.

QubesOS/qubes-issues#3585
Marek Marczykowski-Górecki 4 years ago
parent
commit
2afab43df9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/libvirt/xen.xml

+ 1 - 1
templates/libvirt/xen.xml

@@ -162,7 +162,7 @@
                         vm.features.check_with_template('linux-stubdom', True) %}
                         cmdline="-net lwip,client_ip={{ vm.ip -}}
                             ,server_ip={{ vm.dns[1] -}}
-                            ,dns={{ vm.netvm.gateway -}}
+                            ,dns={{ vm.dns[0] -}}
                             ,gw={{ vm.netvm.gateway -}}
                             ,netmask={{ vm.netmask }}"
                     {% endif %}