summaryrefslogtreecommitdiffstats
path: root/network/nss-mdns/README
blob: 75a811a1bd3ba497fcba1db94098f05863ae0178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality
of the GNU C Library (glibc) which provides host name resolution via
Multicast DNS (a.k.a. Zeroconf, a.k.a. Apple Rendezvous, a.k.a Apple Bonjour).
This effectively allows name resolution by common Unix/Linux programs in the
ad-hoc mDNS domain .local.

By default nss-mdns tries to contact a running avahi-daemon for resolving
host names and addresses and making use of its superior record caching.
Optionally nss-mdns can be compiled with a mini mDNS stack that can be
used to resolve host names without a local Avahi installation. Both Avahi
support and this mini mDNS stack are optional, however at least one of the
needs to be enabled. If both are enabled a connection to Avahi is tried first,
and if that fails the mini mDNS stack is used.  This build script enables 
both, but the mini mDNS stack will be used on a default Slackware install,
as Avahi is not included.

To test, the following command should return a mapping for the remote host:
  getent hosts <hostname>.local