Don't send hostname to DHCP

This commit is contained in:
Peter Vacho 2026-03-10 15:43:05 +01:00
parent 1949a28d9b
commit 532a8db7bb
No known key found for this signature in database
GPG key ID: 00ACA0D6AF712EC9

View file

@ -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 <connection> ipv4.dhcp-send-hostname yes ipv6.dhcp-send-hostname yes
[connection]
ipv4.dhcp-send-hostname=false
ipv6.dhcp-send-hostname=false