On Wed, Oct 07, 2020 at 06:55:32AM +0200, Tomasz Torcz wrote:
On Tue, Oct 06, 2020 at 10:04:19PM +0200, Juan Orti Alcaine wrote:
Hello,
In the network bridges that libvirt creates there's a dnsmasq daemon to resolve the VM's IPs. Is there any way to signal systemd-resolved from libvirt to say that in the bridge interface there is a DNS server and a domain?
Related, there is nss-mymachines: https://www.freedesktop.org/software/systemd/man/nss-mymachines.html
It resolves IPs of instances registered with machined. Libvirt already registers virtual machines with machined. But as I see, libvirt does not provide IP addresses during registration. Maybe this could be fixed?
IP addresses are not known at time of registration, but libvirt's own NSS module can be used instead.
Regards, Daniel