Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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>
share|improve this question
    
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
    
@Harald Post that as an answer and I'll accept (it works now). –  Graham Borland May 24 '11 at 10:15
    
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
    
On the Linux box: sudo apt-get install avahi-daemon –  Graham Borland May 24 '11 at 12:08
add comment

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.