-2

My router is an Airport Extreme. I can easily ssh to other OS X machines via hostname.local (example1.local, exmaple2.local, etc) once it is set in in the preferences.

But despite the fact that my Ubuntu machine is connected, it's hostname doesn't seem to be visible to other machines on my LAN. I can connect via LAN ip. I can also add it's ip manually to my /etc/hosts file and that works fine. but how do I get it to dynamically broadcast it's hostname the way my OS X machines do?

I don't really understand how my OS X machines are recognizing one another's .local hostnames, is the the router providing DNS?

2 Answers2

3

The router isn't providing DNS. Your Macs can all see each other because they use mDNS(Bonjour) for local name resolution.

You can install and configure Ahavi on your Ubuntu machine if you want it to work the same way, or you can set up an actual DNS server.

MDMarra
  • 100,734
  • 32
  • 197
  • 329
1

You do not need to register your host name with the Airport Extreme in order to get its name recognized under the .local domain. You just need to be running a zeroconf stack on your computer. In particular for Ubuntu, just make sure the "avahi-daemon" package is installed and that Avahi is running (which it will be by default if the package is installed).

Celada
  • 6,200
  • 1
  • 21
  • 17