Re: Changing dnsmasq DNS settings for virtual machines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/13/2014 10:23 PM, Johannes Kastl wrote:
> -----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.

Yes, you can change that file, but:

1) the location and contents of that file are not a part of the official
libvirt API, and are subject to change at any time,

2) The file is only read by dnsmasq immediately after it has been
created, when dnsmasq first starts.

3) dnsmasq runs as user nobody, so it isn't even possible to force it to
reread that file by sending a SIGHUP.

So, changing the contents of the conf file does you no good (or at least
it *shouldn't* do you any good)

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

It is rewritten from scratch based on the network's config each time you
re-start the network.


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux