mirror of
https://github.com/systemd/systemd.git
synced 2024-12-16 05:33:36 +08:00
networkd: don't respect domainname from DHCP by default
Most routers will send garbage, so make this opt-in only.
This commit is contained in:
parent
784d9b9c09
commit
1bd27a45d0
@ -446,6 +446,13 @@
|
||||
will be used as the transient hostname.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><varname>UseDomainName=</varname></term>
|
||||
<listitem>
|
||||
<para>When true (not the default), the domain name received from the DHCP server
|
||||
will be used for DNS resolution over this link.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><varname>UseRoutes=</varname></term>
|
||||
<listitem>
|
||||
|
@ -83,7 +83,6 @@ static int network_load_one(Manager *manager, const char *filename) {
|
||||
network->dhcp_ntp = true;
|
||||
network->dhcp_dns = true;
|
||||
network->dhcp_hostname = true;
|
||||
network->dhcp_domainname = true;
|
||||
network->dhcp_routes = true;
|
||||
network->dhcp_sendhost = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user