dotfiles/root/etc/NetworkManager/conf.d/dhcp-hostname.conf
2026-03-10 15:43:05 +01:00

12 lines
564 B
Text

# 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