diff --git a/root/etc/NetworkManager/conf.d/dhcp-hostname.conf b/root/etc/NetworkManager/conf.d/dhcp-hostname.conf new file mode 100644 index 0000000..6c6ceed --- /dev/null +++ b/root/etc/NetworkManager/conf.d/dhcp-hostname.conf @@ -0,0 +1,12 @@ +# Do not send the system hostname to DHCP servers. +# +# Normally NetworkManager includes the hostname in DHCP requests so the +# server can label leases or register dynamic DNS entries. Most networks +# do not rely on this, and disabling it slightly reduces information +# leaked about the device (especially when MAC randomization is used). +# +# Individual connections can override this if needed: +# nmcli connection modify ipv4.dhcp-send-hostname yes ipv6.dhcp-send-hostname yes +[connection] +ipv4.dhcp-send-hostname=false +ipv6.dhcp-send-hostname=false