]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: dhcp4: enable RoutesToDNS= by default
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Apr 2021 17:04:32 +0000 (02:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Apr 2021 15:01:18 +0000 (00:01 +0900)
man/systemd.network.xml
src/network/networkd-network.c

index 324d1266b4964653cc133d6075f64f222c1ce4b1..ddba9a2cf2e87ab37117753d398b3659d280d045 100644 (file)
@@ -1631,7 +1631,7 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
           <listitem>
             <para>When true, the routes to the DNS servers received from the DHCP server will be
             configured. When <varname>UseDNS=</varname> is disabled, this setting is ignored.
-            Defaults to false.</para>
+            Defaults to true.</para>
           </listitem>
         </varlistentry>
         <varlistentry>
index 9833722f71a2b80ebc0dbdd18b924f8f6074e158..89b78ca1205a24c6908456ab06b63ea58ce6937a 100644 (file)
@@ -306,6 +306,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi
                 .dhcp_use_ntp = true,
                 .dhcp_use_sip = true,
                 .dhcp_use_dns = true,
+                .dhcp_routes_to_dns = true,
                 .dhcp_use_hostname = true,
                 .dhcp_use_routes = true,
                 .dhcp_use_gateway = -1,