|
@@ -101,19 +101,10 @@ EOF</userinput></screen>
|
|
from the ISP or network administrator, into
|
|
from the ISP or network administrator, into
|
|
<filename>/etc/resolv.conf</filename>.</para>
|
|
<filename>/etc/resolv.conf</filename>.</para>
|
|
|
|
|
|
- <para>When using <command>systemd-networkd</command> for network
|
|
|
|
- configuration, another daemon, <command>systemd-resolved</command>,
|
|
|
|
- is responsible for creating the <filename>/etc/resolv.conf</filename>
|
|
|
|
- file. It is, however, placed in a non-standard location which is
|
|
|
|
- writable since early boot, so it is necessary to create a symlink
|
|
|
|
- to it by running the following command:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
|
|
|
|
-
|
|
|
|
<para>If static <filename>/etc/resolv.conf</filename> is desired, create
|
|
<para>If static <filename>/etc/resolv.conf</filename> is desired, create
|
|
it by running the following command:</para>
|
|
it by running the following command:</para>
|
|
|
|
|
|
-<screen><userinput>cat > /etc/resolv.conf << "EOF"
|
|
|
|
|
|
+<screen role="nodump"><userinput>cat > /etc/resolv.conf << "EOF"
|
|
<literal># Begin /etc/resolv.conf
|
|
<literal># Begin /etc/resolv.conf
|
|
|
|
|
|
domain <replaceable><Your Domain Name></replaceable>
|
|
domain <replaceable><Your Domain Name></replaceable>
|
|
@@ -136,6 +127,19 @@ EOF</userinput></screen>
|
|
|
|
|
|
<note><para>The Google Public IPv4 DNS addresses are 8.8.8.8 and 8.8.4.4.</para></note>
|
|
<note><para>The Google Public IPv4 DNS addresses are 8.8.8.8 and 8.8.4.4.</para></note>
|
|
|
|
|
|
|
|
+ <para>When using <command>systemd-networkd</command> for network
|
|
|
|
+ configuration, another daemon, <command>systemd-resolved</command>,
|
|
|
|
+ is responsible for creating the <filename>/etc/resolv.conf</filename>
|
|
|
|
+ file. It is, however, placed in a non-standard location which is
|
|
|
|
+ writable since early boot, so it is necessary to create a symlink
|
|
|
|
+ to it by running the following command:</para>
|
|
|
|
+
|
|
|
|
+<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
|
|
|
|
+
|
|
|
|
+ <para>This is required if you are specifying DNS entries in <filename
|
|
|
|
+ class="extension">.network</filename> files or using the built in
|
|
|
|
+ DHCP client to obtain DNS addresses.</para>
|
|
|
|
+
|
|
</sect2>
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="ch-scripts-hostname">
|
|
<sect2 id="ch-scripts-hostname">
|