So question is, how do I get my Pi's hostname to appear on my LAN so I can ping/telnet/ssh whatever to it by that hostname?
LAN is connected through a Netgear DG834GT wireless router using DHCP to assign IP numbers to the many connected devices. No matter what I seem to do I cannot get the router to recognise the hostname - always shows as UNKNOWN against the assigned IP. However, I put raspbmc on another card to play with, and guess what - that shows up no problem at all (as raspbmc!) and I can ping it, ssh to it etc all by hostname. So what is raspbmc doing to achieve this?
This is what I have tried from all the reading I've done (and for completeness I always reboot after making any changes):
1) edit /etc/hostname /etc/hosts - great, yes, changes the hostname, but it doesn't show up on the network
2) edit /etc/dhcp/dhclient.conf - have tried both
- Code: Select all
send host-name = gethostname();
and the more definitive
- Code: Select all
send host-name "newpihost";
and no change at all - and that's the strange thing, no matter what I put in /etc/dhcp/dhclient.conf it seems to be ignored (this seems suspicious to me, why is this not affecting anything?)
3) Some seem to suggest installing samba and winbind, or ensuring the pi has a static ip and then adding entries in every other machine's hosts file - neither solution seems the correct way of resolving (pun intended) this.
All this is being done on a fresh install of Raspbian Wheezy downloaded from this site 20/02/2013 - no other configuration has been done other than setting the timezone, and expanding the filesystem to fill the 4GB card.
I've posted in this particular forum, but I do consider myself a born again newbie as it's a little over 15 years since I last touched a unix system (many different flavours), and although a lot is coming back to me, I was never much involved in the networking side of things.
Please, can anyone help as this is driving me nuts now and I won't rest until I've cracked it! In the words of a British TV car show host, "How hard can it be?"
Thanks in advance for any help/suggestions