From b7f01ea0ed82b687b2d296f87b70a1e640b7f245 Mon Sep 17 00:00:00 2001
From: Michal Privoznik libvirt-guest
+ nss: Introduce libvirt_guest
libvirt-guest nss module that translates libvirt
+ New libvirt_guest nss module that translates libvirt
guest names into IP addresses.
libvirt-guest module which does libvirt guest
+ second method in libvirt_guest module which does libvirt guest
name to IP address translation (regardless of hostname set in the guest).
To enable either of the modules put their name into the
nsswitch.conf file. For instance, to enable
- libvirt-guest module:
+ libvirt_guest module:
$ cat /etc/nsswitch.conf # /etc/nsswitch.conf: -hosts: files libvirt-guest dns +hosts: files libvirt_guest dns # ...
Or users can enable both at the same time:
$ cat /etc/nsswitch.conf # /etc/nsswitch.conf: -hosts: files libvirt libvirt-guest dns +hosts: files libvirt libvirt_guest dns # ...
This configuration will mean that if hostname is not found by the
libvirt module (e.g. because a guest did not sent hostname
- during DHCP transaction), the libvirt-guest module is
+ during DHCP transaction), the libvirt_guest module is
consulted (and if the hostname matches libvirt guest name it will be
resolved).
If there's no record for either of the aforementioned commands, it's
very likely that NSS module won't find anything and vice versa.
- As of v3.0.0 libvirt provides libvirt-guest NSS
+ As of v3.0.0 libvirt provides libvirt_guest NSS
module that doesn't have this limitation. However, the statement is still
true for the libvirt NSS module.