Changeset acbb08f
- Timestamp:
- 08/22/2014 03:10:02 PM (10 years ago)
- Branches:
- 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- b91e715
- Parents:
- db05718
- Location:
- chapter07
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/clock.xml
rdb05718 racbb08f 83 83 established NTP daemon, but as a client only implementation 84 84 of the SNTP protocol which can be used for less advanced 85 tasks and on aresource limited systems.</para>85 tasks and on resource limited systems.</para> 86 86 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> 89 91 90 <screen role="nodump"><userinput>systemctl enable systemd-timesyncd</userinput></screen>92 <screen role="nodump"><userinput>systemctl disable systemd-timesyncd</userinput></screen> 91 93 92 94 <para>The <filename>/etc/systemd/timesyncd.conf</filename> file -
chapter07/network.xml
rdb05718 racbb08f 102 102 <filename>/etc/resolv.conf</filename>.</para> 103 103 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 > /etc/resolv.conf << "EOF" 108 <literal># Begin /etc/resolv.conf 109 110 domain <replaceable><Your Domain Name></replaceable> 111 nameserver <replaceable><IP address of your primary nameserver></replaceable> 112 nameserver <replaceable><IP address of your secondary nameserver></replaceable> 113 114 # End /etc/resolv.conf</literal> 115 EOF</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><IP address of the nameserver></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 104 130 <para>When using <command>systemd-networkd</command> for network 105 131 configuration, another daemon, <command>systemd-resolved</command>, … … 111 137 <screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen> 112 138 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 > /etc/resolv.conf << "EOF" 117 <literal># Begin /etc/resolv.conf 118 119 domain <replaceable><Your Domain Name></replaceable> 120 nameserver <replaceable><IP address of your primary nameserver></replaceable> 121 nameserver <replaceable><IP address of your secondary nameserver></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><IP address of the nameserver></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> 138 142 139 143 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.