Ubuntu sends my computer's configured hostname to any DHCP server it tries to use. How do I stop it from sending a hostname?
1 Answer
you can do it.
send host-name = gethostname();
This statement actually getting the host name of the system from the return value of function.
you can set it manually to some other name if you want.
send host-name =olathe ;
to send no host name: send host-name = ;
dhcp3
see the config in ` /etc/dhcp3. It has a setting like this
send host-name "<hostname>";`/sbin/dhclient
which is probably it with a versionisc-dhclient-4.2.4
. While there's no/etc/dhcp3
, there is anetc/dhcp/dhclient.conf
with a commentConfiguration file for /sbin/dhclient, which is included in Debian's dhcp3-client package.
and with the linesend host-name = gethostname();
. Would commenting out that line stop it or do I have to change it to something to avoid it doing something like sending a default hostname if there's nothing configured?