Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The Mac machines within a local network is visible automatically to the other Macs. They're visible on Finder and can be accessed with their names via console. As I know this is multicast-local-DNS.

I want to make my FreeBSD machine is visible from my Mac. I just want to connect to there with it's hostname for SSH. Is there a simple solution for this? I tried hosts file, but it was not a good idea because the host address are configured by DHCP so not guaranteed.

share|improve this question
add comment

2 Answers

You can install avahi(/usr/ports/net/avahi).

Avahi is a free zeroconf implementation, including a system for multicast DNS/DNS-SD service discovery. It is licensed under the GNU Lesser General Public License (LGPL).

share|improve this answer
    
Avahi is included in OpenBSD's Gnome desktop packages, so it must be good :-) –  DutchUncle Mar 2 '11 at 1:46
1  
Avahi works good, but it's definitely stand for GUI desktop. So it has too heavy dependencies for me :( –  Eonil Mar 2 '11 at 2:11
add comment

I installed mDNSResponder package.

pkg_add -r mDNSResponder

And added this line on /etc/rc.conf to activate it as daemon.

mdnsd_enable="YES"

This is smallest & simplest solution.

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