In linux, when my machine requests an IP address it also sends the hostname back to the DHCP server. How can I stop my machine from sending back this hostname?
I use dhclient, possibly via NetworkManager.
You can find host-name in dhcp client configuration to remove or add hostname.
For example:
Debian / Ubuntu Linux - /etc/dhcp3/dhclient.conf
$ sudo vi /etc/dhcp3/dhclient.conf Set hostname as you need on the following line: send host-name "yourhostname";
RHEL / Fedora / CentOS Linux - /etc/sysconfig/network-scripts/ifcfg-eth0 (for 1st DHCP network interface)
Open configuration file, enter:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 Append hostname as you need on the following line :
DHCP_HOSTNAME=yourhostname It is also possible for NetworkManager to send the hostname; see /etc/NetworkManager/NetworkManager.conf looking for:
[keyfile] hostname=your_hostname