mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2026-03-16 11:37:23 +00:00
Don't send hostname to DHCP
This commit is contained in:
parent
1949a28d9b
commit
532a8db7bb
1 changed files with 12 additions and 0 deletions
12
root/etc/NetworkManager/conf.d/dhcp-hostname.conf
Normal file
12
root/etc/NetworkManager/conf.d/dhcp-hostname.conf
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue