I installed mDNSResponder from port.
After that, I modified /etc/nsswitch.conf to add mdns to host: entry.
It works well. My OSX box can find FreeBSD box via name. But, FreeBSD box cannot find OSX box with name. It also cannot find other FreeBSD box too. I think there's some problem on resolving name to IP address feature.
So, name advertising is working well, but name resolution doesn't work.
How can make it to work?
Code:
cd /usr/ports
portmaster net/mDNSResponder
echo 'mdnsd_enable="YES"' >> /etc/rc.conf
service mdnsd restart
After that, I modified /etc/nsswitch.conf to add mdns to host: entry.
It works well. My OSX box can find FreeBSD box via name. But, FreeBSD box cannot find OSX box with name. It also cannot find other FreeBSD box too. I think there's some problem on resolving name to IP address feature.
Code:
root@freebsd9:~ # mDNSIdentify freebsd9.local
freebsd9.local. Addr 192.168.0.105
freebsd9.local has no HINFO record
mDNS_PurgeCacheResourceRecord: Lock not held! mDNS_busy (0) mDNS_reentrancy (0)
mDNS_PurgeCacheResourceRecord: Lock not held! mDNS_busy (0) mDNS_reentrancy (0)
^Croot@freebsd9:~ # curl http://freebsd9.local
root@freebsd9:~ # curl http://freebsd9.local
curl: (6) Could not resolve host: freebsd9.local
root@freebsd9:~ # curl http://freebsd9.local
root@freebsd9:~ # curl http://freebsd9.local
root@freebsd9:~ # curl http://freebsd9.local
root@freebsd9:~ # curl http://localhost
curl: (7) Failed connect to localhost:80; Connection refused
root@freebsd9:~ #
So, name advertising is working well, but name resolution doesn't work.
How can make it to work?