2

I have a Linux server in my cupboard. My Windows machines can connect to it via its hostname. I have never configured any DNS server; all I did was assign the Linux box a name when I installed Ubuntu on it. It's running a Samba file server.

My Macbook Pro doesn't recognize the host name. How can I make my Macbook find the machine the same way the Windows machines can? The Linux machine's IP is dynamically assigned via DHCP so I don't want to add a permanent entry to a hosts file or similar. (Despite this, the Windows machines can always find it.)

Update: I can't ping the machine, but nmblookup can find it.

grahamb@pickle:~$ ping fry
ping: cannot resolve fry: Unknown host
grahamb@pickle:~$ ping fry.local
ping: cannot resolve fry.local: Unknown host
grahamb@pickle:~$ nmblookup fry
querying fry on 192.168.1.255
192.168.1.8 fry<00>
  • nmb isn't in OSX's resolver by default. Though someone else will have to elaborate, because much of this stuff STILL eludes me. – Jason Salaz May 24 '11 at 9:37
  • 1
    I believe what you want to do is to make the linux machine announce itself using mDNS. But then it's not a Mac question anymore, but a Linux question. – Harald Hanche-Olsen May 24 '11 at 10:00
  • Great. Even though it may be off topic, would you mind briefly telling us what you did to solve it? – Harald Hanche-Olsen May 24 '11 at 10:55
  • 1
    On the Linux box: sudo apt-get install avahi-daemon – Graham Borland May 24 '11 at 12:08
3

I believe what you want to do is to make the linux machine announce itself using mDNS. But then it's not a Mac question anymore, but a Linux question.

  • 1
    Thanks, after executing "sudo apt-get install avahi-daemon" on the Linux machine, the Mac can now see it as fry.local. – Graham Borland May 24 '11 at 12:09

You must log in to answer this question.

protected by bmike Aug 26 '17 at 18:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .