]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: sync up the suggested nsswitch.conf configuration for our four NSS modules 4474/head
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2016 16:58:03 +0000 (18:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2016 17:04:43 +0000 (19:04 +0200)
This unifies the suggested nsswitch.conf configuration for our four NSS modules to this:

    hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname

Note that this restores "myhostname" to the suggested configuration of
nss-resolve for the time being, undoing 4484e1792b64b01614f04b7bde97bf019f601bf9.

"myhostname" should probably be dropped eventually, but when we do this we
should do it in full, and not only drop it from the suggested nsswitch.conf
for one of the modules, but also drop it in source and stop referring to it
altogether.

Note that nss-resolve doesn't replace nss-myhostname in full: the former only
works if D-Bus/resolved is available for resolving the local hostname, the
latter works in all cases even if D-Bus or resolved are not in operation, hence
there's some value in keeping the line as it is right now. Note that neither
dns nor myhostname are considered at all with the above configuration unless
the resolve module actually returns UNAVAIL. Thus, even though handling of
local hostname resolving is implemented twice this way it is only executed once
for each lookup.

man/nss-myhostname.xml
man/nss-mymachines.xml
man/nss-resolve.xml
man/nss-systemd.xml

index b1daaba02b01ee0665fa19ea2f58756d9c436836..c25476ecc83bdafdebc02fe7b6e4183b77797ae4 100644 (file)
 group:          compat mymachines systemd
 shadow:         compat
 
-hosts:          files mymachines resolve <command>myhostname</command>
+hosts:          files mymachines resolve [!UNAVAIL=return] dns <command>myhostname</command>
 networks:       files
 
 protocols:      db files
index a70119e25619732829da9d8809ba1cbfd10f6c92..00bcc53ec048adf581bf8aa4273015be0bc137bb 100644 (file)
@@ -86,7 +86,7 @@
 group:          compat <command>mymachines</command> systemd
 shadow:         compat
 
-hosts:          files <command>mymachines</command> resolve myhostname
+hosts:          files <command>mymachines</command> resolve [!UNAVAIL=return] dns myhostname
 networks:       files
 
 protocols:      db files
index d66e8ba5217dc36d23422a5731188c2c76750646..9f24f6501958d012827d7d8e6c515d19f79e7f0c 100644 (file)
@@ -85,7 +85,7 @@
 group:          compat mymachines systemd
 shadow:         compat
 
-hosts:          files mymachines <command>resolve [!UNAVAIL=return]</command> dns
+hosts:          files mymachines <command>resolve [!UNAVAIL=return]</command> dns myhostname
 networks:       files
 
 protocols:      db files
index 56d26e7d1f9ea049c97bb37f43d9caa9a21892f7..71aed4df83eb4a661d984a7795654e032e42bcb5 100644 (file)
@@ -83,7 +83,7 @@
 group:          compat mymachines <command>systemd</command>
 shadow:         compat
 
-hosts:          files mymachines resolve myhostname
+hosts:          files mymachines resolve [!UNAVAIL=return] dns myhostname
 networks:       files
 
 protocols:      db files