Ignore:
Timestamp:
09/14/2023 08:50:37 AM (12 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
2df066c9, d269e20, dc39c7b
Parents:
efd1113
git-author:
Xi Ruoyao <xry111@…> (09/14/2023 08:48:46 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/14/2023 08:50:37 AM)
Message:

systemd: Use NSS modules provided by systemd in nsswitch.conf

It allows a simplification to /etc/hosts. Also correct some info about
FQDN in both sysv and systemd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/glibc.xml

    refd1113 rba40e32  
    321321    following:</para>
    322322
    323 <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
     323<screen revision='sysv'><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
    324324<literal># Begin /etc/nsswitch.conf
    325325
     
    329329
    330330hosts: files dns
     331networks: files
     332
     333protocols: files
     334services: files
     335ethers: files
     336rpc: files
     337
     338# End /etc/nsswitch.conf</literal>
     339EOF</userinput></screen>
     340
     341<screen revision='systemd'><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
     342<literal># Begin /etc/nsswitch.conf
     343
     344passwd: files systemd
     345group: files systemd
     346shadow: files systemd
     347
     348hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
    331349networks: files
    332350
Note: See TracChangeset for help on using the changeset viewer.