From 532a8db7bbb844f8944383cec7c7a705c4b66746 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Tue, 10 Mar 2026 15:43:05 +0100 Subject: [PATCH] Don't send hostname to DHCP --- root/etc/NetworkManager/conf.d/dhcp-hostname.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 root/etc/NetworkManager/conf.d/dhcp-hostname.conf 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