mDNS/Bonjour/Zeroconf auf Debian/Ubuntu
mDNS/Bonjour/Zeroconf service on Debian/Ubuntu (AVAHI)
mDNS (Multicast DNS /
RFC 6762) allows you to access Computers
in your LAN by their name rather than their IP address. It is implemented in
Apple Bonjour, which is also available for Windows, and in Linux AVAHI,
which is prety easy to install and require no/minimal configutation. The "local
domain name" is by default derived from the host name plus .local
.
mDNS (Multicast DNS /
RFC 6762) erlaubt es,
Computer im LAN mit ihrem Namen statt mit der IP-Addresse anzusprechen. Es ist Teil
von Bonjour (Apple), welches auch für Windows erhältlich ist. Unter Linux beinhaltet
AVAHI einen mDNS-Responder. Der "lokale Domainname" des Rechners ergibt sich aus
seinem festgelegten Hostnamen plus .local
, z.B. mein-rechner.local
. AVAHI
ist leicht zu installieren und benötigt praktisch keine Konfiguration.
Setup
Installation
apt-get install avahi-daemon
# Firewall (here uncomplicated firewall on ubuntu)
ufw allow mdns
Configuration
Konfiguration
Fix /etc/nsswitch.conf
CHANGE hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
TO hosts: files mdns4_minimal dns mdns4 [NOTFOUND=return]
/etc/avahi/avahi-daemon.conf
[publish]
# If you don't like applications to publish their services
disable-user-service-publishing=yes
/etc/avahi/services/
Remove services (files) that you don't want to publish
Restart daemon
service avahi-daemon restart