å®éã«ä½¿ãã«ã¯ï¼
% sudo vi /etc/nsswitch.conf
ã§ã
hosts: files dns
ã
hosts: files mdns dns
ã¨ããã
ã©ãã
% sudo portinstall dns/nss_mdns/
ãããªãã¨ãããªãæãã
avahiã£ã¦ï¼
zeroconfã®å®è£ ã®ä¸ã¤ã
mDNSresponder(by apple)ã¨ãhowlã¨ãã®é«æ©è½çã£ã½ãã
ã¦ããããhowlã¯éçºä¸æ¢(ã©ã¤ã»ã³ã¹ããªãã¨ãã¨ã)ãªã®ã§ã
avahiã使ãã®ãããããããã
configuration
% sudo vi /usr/local/etc/avahi/avahi-daemon.conf (avahi-daemonèªèº«ã®è¨å®) host-name={èªåã®ãã¹ãå} domain-name=local <-- å¥ã«localãããªãã¦ããããã ãããã©ã
ã¯æä½é(ãªã®ããªï¼åæã«ã²ã£ã±ã£ã¦ãããããªãã®ã ãã©)ã
ãã¨ã¯use-ipv6=yesã«ãããã¨ãã
èµ·å
% sudo avahi-daemon --daemonize
ã試ã
% avahi-resolve-host-name {è¨å®ãããã¹ãå}.local.
èªåèµ·åã§ããããã«ãã¦ã¿ã
/etc/rc.confã«
dbus_enable="YES" avahi_daemon_enable="YES"
ãæ¸ãã
åé¡çºçãã°
[2006-06-01] èµ·åããªãçºç
Found user 'avahi' (UID 558) and group 'avahi' (GID 558). Successfully dropped root privileges. avahi-daemon 0.6.10 starting up. WARNING: No NSS support for mDNS detected, consider installing nss-mdns! dbus_bus_get(): Failed to connect to socket /var/run/dbus/dbus.pipe: No such file or directory WARNING: Failed to contact D-BUS daemon.
% sudo dbus-launch
ãã¦ãã ãã(dbus-daemonãåãã¦ãããã¨ã¯ç¢ºèª)
/usr/local/etc/dbus-1/system.confã«ã¯
<listen>unix:path=/var/run/dbus/dbus.pipe</listen>
ã¨æ¸ãã¦ããã
% dbus-daemon --config-file=/usr/local/etc/dbus-1/system.conf
ã§dbus-daemonãèµ·åã --> avahi-daemonãç¡äºèµ·åããã