[libvirt-users] Changing dnsmasq DNS settings for virtual machines

Johannes Kastl mail at ojkastl.de
Sun Apr 13 19:23:17 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Laine,

thanks for the answer.

On 13.04.14 16:13 Laine Stump wrote:

> There is no provision for that. If you want additional hosts to be
> known by the libvcirt instance of dnsmasq, you must enter them into
> the xml.

I can set the addn-hosts in the .conf file in
/var/lib/libvirt/dnsmasq/<nameofthenetwork>.conf.

I was just not sure if this gets overwritten, each time I change a
setting in the network's xml (virsh net-edit ...).

> If we allowed pointing to an existing addn-hosts file written by
> the user, we would be adding the format of dnsmasq's addn-hosts
> file to libvirt's official API, which we don't want to do - we want
> to keep libvirt's API as implementation-agnostic as possible (in
> case someone implements a libvirt network driver that uses
> something other than dnsmasq for DNS, for example).

Sounds reasonable.

Regards,
Johannes
- -- 
Osama bin Laden might wish to destroy America, but America is too big
for him; he cannot do it. Bush may really do it.
(Richard M. Stallman)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlNK5CUACgkQzi3gQ/xETbItiACgjNozwILNWIul24L/uac+gSbo
UK0AoJPBUfDvgwutDSAYFcLv+gib9JXL
=vsiW
-----END PGP SIGNATURE-----




More information about the libvirt-users mailing list