From b7f01ea0ed82b687b2d296f87b70a1e640b7f245 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 13 Jan 2017 11:41:11 +0100 Subject: [PATCH] docs: Fix libvirt_guest nss module name In the documentation we are mixing libvirt-guest and libvirt_guest module name. The correct name is the latter. Signed-off-by: Michal Privoznik --- docs/news.xml | 4 ++-- docs/nss.html.in | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/news.xml b/docs/news.xml index 8a876e998f..50c3b3ea2f 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -29,10 +29,10 @@ - nss: Introduce libvirt-guest + nss: Introduce libvirt_guest - New libvirt-guest nss module that translates libvirt + New libvirt_guest nss module that translates libvirt guest names into IP addresses. diff --git a/docs/nss.html.in b/docs/nss.html.in index e07f9b774f..2a5a46cd16 100644 --- a/docs/nss.html.in +++ b/docs/nss.html.in @@ -72,34 +72,34 @@ hosts: files libvirt dns records. Therefore this is dependent on hostname provided by guests. Thing is, not all the guests out there provide one in DHCP transactions, or not every sysadmin out there believes all the guests. Hence libvirt implements - second method in 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).

@@ -181,7 +181,7 @@ virsh domifaddr --source lease $domain

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.

-- GitLab