Hostnames and routers... help?

Associate
Joined
22 Oct 2002
Posts
172
Location
The bowels of student hell.
Hello,

just wondering if anyone can enlighten me with regard to the following problem:

I have a wireless router, set up to do DHCP, and a number of wireless and wired hosts on my LAN. Some are Windows, some are Linux.

On my router config page, it provides a list of hosts connected that it has given out DHCP IPs to. It says the hostname of the machine followed by its mac address and the IP it has been assigned.

All of the Windows machines have the correct hostname, but the Linux ones are either completely blank or say "unknown".

Does anyone know why this is? Is it something to do with Samba / NMBD? It's not a *major* problem but it does annoy me.

Thanks guys :D

DeathByMonkey
 
Annoys me too :) Not sure whether it's the same on all distribs, but I fixed it on all our linux boxes by adding the following lines to /etc/dhclient.conf

interface "eth0" {
send host-name "mylinuxbox";
}

Changing eth0 and mylinuxbox appropriately :)

Run dhclient when you're done, and it should register it's name with your router. Not really sure why distributions don't do this by default.. I'm sure there's an allegedly good reason for it :)
 
Beepcake said:
Annoys me too :) Not sure whether it's the same on all distribs, but I fixed it on all our linux boxes by adding the following lines to /etc/dhclient.conf

interface "eth0" {
send host-name "mylinuxbox";
}

Changing eth0 and mylinuxbox appropriately :)

Run dhclient when you're done, and it should register it's name with your router. Not really sure why distributions don't do this by default.. I'm sure there's an allegedly good reason for it :)

Dude...... you are my hero ;)
 
Back
Top Bottom