# HG changeset patch # User Roy Marples # Date 1590618856 -3600 # Node ID f0c6e0c1d52ac83212fed8de38072f4a2bddf268 # Parent 3a33b39120eb2524680ffcb8927f92fc9b7e7d11 dhcpcd.conf: harden default options Don't send the current hostname. Don't send the default vendorclassid. Slight re-org while here. diff -r 3a33b39120eb -r f0c6e0c1d52a src/dhcpcd.conf --- a/src/dhcpcd.conf Wed May 27 21:49:05 2020 +0100 +++ b/src/dhcpcd.conf Wed May 27 23:34:16 2020 +0100 @@ -5,7 +5,7 @@ #controlgroup wheel # Inform the DHCP server of our hostname for DDNS. -hostname +#hostname # Use the hardware address of the interface for the Client ID. #clientid @@ -18,20 +18,27 @@ # Persist interface configuration when dhcpcd exits. persistent +# vendorclassid is set to blank to avoid sending the default of +# dhcpcd-::: +vendorclassid + +# A list of options to request from the DHCP server. +option domain_name_servers, domain_name, domain_search +option classless_static_routes +# Respect the network MTU. This is applied to DHCP routes. +option interface_mtu + +# Request a hostname from the network +option host_name + +# Most distributions have NTP support. +#option ntp_servers + # Rapid commit support. # Safe to enable by default because it requires the equivalent option set # on the server to actually work. option rapid_commit -# A list of options to request from the DHCP server. -option domain_name_servers, domain_name, domain_search, host_name -option classless_static_routes -# Respect the network MTU. This is applied to DHCP routes. -option interface_mtu - -# Most distributions have NTP support. -#option ntp_servers - # A ServerID is required by RFC2131. require dhcp_server_identifier