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:
Tom Gundersen 2014-08-15 01:08:46 +02:00
parent 784d9b9c09
commit 1bd27a45d0
2 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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;