Changeset acbb08f


Ignore:
Timestamp:
08/22/2014 03:10:02 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
b91e715
Parents:
db05718
Message:

Fixes to chapter07.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10723 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter07
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter07/clock.xml

    rdb05718 racbb08f  
    8383    established NTP daemon, but as a client only implementation
    8484    of the SNTP protocol which can be used for less advanced
    85     tasks and on a resource limited systems.</para>
     85    tasks and on resource limited systems.</para>
    8686
    87     <para>To enable the <command>systemd-timesyncd</command> daemon,
    88     issue the following command:</para>
     87    <para>Starting with systemd version 216, the
     88    <command>systemd-timesyncd</command> daemon is enabled by
     89    default. If you want to disable it, issue the following
     90    command:</para>
    8991
    90 <screen role="nodump"><userinput>systemctl enable systemd-timesyncd</userinput></screen>
     92<screen role="nodump"><userinput>systemctl disable systemd-timesyncd</userinput></screen>
    9193
    9294    <para>The <filename>/etc/systemd/timesyncd.conf</filename> file
  • chapter07/network.xml

    rdb05718 racbb08f  
    102102    <filename>/etc/resolv.conf</filename>.</para>
    103103
     104    <para>If static <filename>/etc/resolv.conf</filename> is desired, create
     105    it by running the following command:</para>
     106
     107<screen role="nodump"><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
     108<literal># Begin /etc/resolv.conf
     109
     110domain <replaceable>&lt;Your Domain Name&gt;</replaceable>
     111nameserver <replaceable>&lt;IP address of your primary nameserver&gt;</replaceable>
     112nameserver <replaceable>&lt;IP address of your secondary nameserver&gt;</replaceable>
     113
     114# End /etc/resolv.conf</literal>
     115EOF</userinput></screen>
     116
     117    <para>The <varname>domain</varname> statement can be omitted
     118    or replaced with a <varname>search</varname> statement.  See the man page for
     119    resolv.conf for more details.</para>
     120
     121    <para>Replace <replaceable>&lt;IP address of the nameserver&gt;</replaceable>
     122    with the IP address of the DNS most appropriate for the setup. There will
     123    often be more than one entry (requirements demand secondary servers for
     124    fallback capability). If you only need or want one DNS server, remove the
     125    second <emphasis>nameserver</emphasis> line from the file. The IP address
     126    may also be a router on the local network.</para>
     127
     128    <note><para>The Google Public IPv4 DNS addresses are 8.8.8.8 and 8.8.4.4.</para></note>
     129
    104130    <para>When using <command>systemd-networkd</command> for network
    105131    configuration, another daemon, <command>systemd-resolved</command>,
     
    111137<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
    112138
    113     <para>If static <filename>/etc/resolv.conf</filename> is desired, create
    114     it by running the following command:</para>
    115 
    116 <screen><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
    117 <literal># Begin /etc/resolv.conf
    118 
    119 domain <replaceable>&lt;Your Domain Name&gt;</replaceable>
    120 nameserver <replaceable>&lt;IP address of your primary nameserver&gt;</replaceable>
    121 nameserver <replaceable>&lt;IP address of your secondary nameserver&gt;</replaceable>
    122 
    123 # End /etc/resolv.conf</literal>
    124 EOF</userinput></screen>
    125 
    126     <para>The <varname>domain</varname> statement can be omitted
    127     or replaced with a <varname>search</varname> statement.  See the man page for
    128     resolv.conf for more details.</para>
    129 
    130     <para>Replace <replaceable>&lt;IP address of the nameserver&gt;</replaceable>
    131     with the IP address of the DNS most appropriate for the setup. There will
    132     often be more than one entry (requirements demand secondary servers for
    133     fallback capability). If you only need or want one DNS server, remove the
    134     second <emphasis>nameserver</emphasis> line from the file. The IP address
    135     may also be a router on the local network.</para>
    136 
    137     <note><para>The Google Public IPv4 DNS addresses are 8.8.8.8 and 8.8.4.4.</para></note>
     139    <para>This is required if you are specifying DNS entries in <filename
     140    class="extension">.network</filename> files or using the built in
     141    DHCP client to obtain DNS addresses.</para>
    138142
    139143  </sect2>
Note: See TracChangeset for help on using the changeset viewer.