11

My debian is not discoverable via its hostname in my LAN.

I have a couple of other ubuntu machines in the LAN and they are all pingable via their hostnames.

on my debian:

pi@raspberrypi ~ $ hostname
raspberrypi

on another machine in the same LAN:

ping raspberrypi
ping: unknown host raspberrypi

3 Answers 3

11

Your Ubuntu system has the Avahi daemon running while this is not the case for your Raspberry Pi. Install Avahi to solve the problem:

# apt-get install avahi-daemon avahi-discover libnss-mdns
3
  • jftr you probably have to use the .local domain, e.g. raspberrypi.local Commented May 26, 2013 at 22:04
  • When/how does Ubuntu run the daemon? I don't see anything called 'avahi' in the output of ps -x Commented Apr 25, 2014 at 5:32
  • EDIT - run service --status-all | grep avahi Commented Apr 25, 2014 at 5:33
1

If you have changed the hostname try installing samba on the Pi.

sudo apt-get install samba

Then try the following from your remote machine:

ping newhostname.local

And to ssh:

ssh [email protected]
0

Did a remove/install of avahi and insserv as suggested, rebooted the whole shebang. Worked.

If you can ping the IP address from another machine on the network, add the option -a to do a reverse lookup. I myself discovered that there's a max length of 15 chars for hostnames on my router.

ping -a 192.168.1.123
Pinging RASPBERRYPI [192.168.1.123] with 32 bytes of data:
...

As long as that doesn't tell you a name, thou shalt plough on.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.