[libvirt-users] network configuration for guest specific dns-servers

Martin Kletzander mkletzan at redhat.com
Thu Aug 31 08:11:34 UTC 2017

On Thu, Aug 31, 2017 at 12:10:22AM +0200, David Ayers wrote:
>similar to how one can configure guest specific IP addresses via mac
><ip address="" netmask="" localPtr="yes">
>  <dhcp>
>    <range start="" end=""/>
>    <host mac="00:16:3e:77:e2:ed" name="foo.example.com" ip=""/>
>    <host mac="00:16:3e:3e:a9:1a" name="bar.example.com" ip=""/>
>  </dhcp>
>We would like to configure guest specific dns-servers as would be done
>with the --dhcp-option of dnsmasq.  I was expecting to be able to do
>something like:
>    <host mac="00:16:3e:77:e2:ed"
>	name="foo.example.com"
>	ip=""
>	dhcp-option="dns-server," />
>but it seems that this isn't the correct approach, as virsh net-edit
>default removes that attribute definition.

AFAIK the support for this was not added.  Feel free to request this in
our bugzilla [1] so that we can track it.  Or, even better, send a patch
if you have some time ;) It should not be difficult.

>Could someone point me to the correct documentation?

Sure! [2]

>Thank you!
>David Ayers

You are welcome.


[1] https://bugzilla.redhat.com/enter_bug.cgi?product=Virtualization%20Tools&component=libvirt
[2] https://libvirt.org/formatnetwork.html

>David Ayers - Team Austria
>Free Software Foundation Europe (FSFE) []          (http://www.fsfe.org)
>Join the Fellowship of FSFE!         [][][]      (https://fsfe.org/join)
>Your donation powers our work!         ||       (http://fsfe.org/donate)

>libvirt-users mailing list
>libvirt-users at redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20170831/1dcb793a/attachment.sig>

More information about the libvirt-users mailing list