Differences
This shows you the differences between two versions of the page.
— | avahi [2015/08/06 20:45] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Avahi ====== | ||
+ | * [[DNS]] | ||
+ | * [[dnsmasq]] | ||
+ | * [[Multicast DNS]] | ||
+ | * [[netatalk]] | ||
+ | * [[OS X]] | ||
+ | * [[Samba]] | ||
+ | |||
+ | Avahi is software for Linux that provides multicast DNS. | ||
+ | |||
+ | === OS X === | ||
+ | |||
+ | OS X will use mDNS to lookup any hostnames ending in '' | ||
+ | |||
+ | OS X seems to cache mDNS entries, even if a service and/or server goes away. To test: | ||
+ | |||
+ | * Startup iptables, samba, avahi-daemon on nas | ||
+ | * nas shows up in Finder as '' | ||
+ | * Shut down samba and/or avahi-daemon or reboot the box | ||
+ | * '' | ||
+ | |||
+ | == Finder Bugs == | ||
+ | |||
+ | Finder has bugs related to browsing services with zeroconf. | ||
+ | |||
+ | * Disable avahi on the server, and remove any '' | ||
+ | |||
+ | === Samba === | ||
+ | |||
+ | Avahi will advertise services for a Samba server, regardless of whether a smb.service entry exists or not. | ||
+ | |||
+ | === Hosts === | ||
+ | |||
+ | You can advertise subnets and hosts with mDNS by adding entries to the '' | ||
+ | |||
+ | Every service advertised by avahi must also have an entry in the hosts file. | ||
+ | |||
+ | A service for VNC for '' | ||
+ | |||
+ | === Services === | ||
+ | |||
+ | MDNS allows OS X to " | ||
+ | |||
+ | For example, if a server is running a service on another network, but you still want it visible from the existing LAN, you can add a custom service. | ||
+ | |||
+ | Each service has its own file in ''/ | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | Configuration file is found at ''/ | ||
+ | |||
+ | Here are some common settings that may affect the network: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Here are some other settings that will probably not need to be modified: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | |||
+ | === Examples === | ||
+ | |||
+ | == gentoo.local and netatalk == | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | 192.168.13.2 gentoo.local | ||
+ | </ | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | <name replace-wildcards=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!-- Customize this to get a different icon in the Finder. --> | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == cloud.local and Samba == | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | 192.168.12.184 nas.local | ||
+ | </ | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | <name replace-wildcards=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == win5.local and VNC == | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | 192.168.12.205 win5.local | ||
+ | </ | ||
+ | |||
+ | In ''/ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <name replace-wildcards=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Ubuntu ==== | ||
+ | |||
+ | The version of Avahi shipped with Ubuntu 10.04 is old, and causes problems on the LAN. Manual install is recommended. | ||
+ | |||
+ | Here's the configure flags to pass to the source install: | ||
+ | < | ||
+ | ./configure --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 --disable-mono --disable-gdbm --disable-pygtk --disable-python-dbus --disable-monodoc --disable-python | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ./configure --prefix=/ | ||
+ | </ |