# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA.
# See avahi-daemon.conf(5) for more information on this configuration # file!
_MacOSXDupSuppress._tcp:MacOS X Duplicate Machine Suppression _ksysguard._tcp:KDE System Guard _omni-bookmark._tcp:OmniWeb Bookmark Sharing _acrobatSRV._tcp:Adobe Acrobat _adobe-vc._tcp:Adobe Version Cue _home-sharing._tcp:Apple Home Sharing _amzn-wplay._tcp:Amazon Fire TV _qdiscover._tcp:QNAP NAS
# Other _pgpkey-hkp._tcp:GnuPG/PGP HKP Key Server _ldap._tcp:LDAP Directory Server _tp._tcp:Thousand Parsec Server _tps._tcp:Thousand Parsec Server (Secure) _tp-http._tcp:Thousand Parsec Server (HTTP Tunnel) _tp-https._tcp:Thousand Parsec Server (Secure HTTP Tunnel) _shifter._tcp:Window Shifter _xpra._tcp:Xpra Session Server _libvirt._tcp:Virtual Machine Manager _device-info._tcp:Device Info
静态主机名称
man avahi.hosts
/etc/avahi/hosts
1 2 3 4 5 6 7 8 9 10 11 12
# This file is part of avahi. # # This file contains static ip address <-> host name mappings. These # can be useful to publish services on behalf of a non-avahi enabled # device. Please bear in mind that host names are expected to be # fully qualified domain names, i.e. ending in .local!
# See avahi.hosts(5) for more information on this configuration file!
:~$ avahi-browse -all + eth0 IPv4 transmission Web Site local + eth0 IPv4 pi Web Site local + eth0 IPv4 pi SSH Remote Terminal local + eth0 IPv4 R7800 SSH Remote Terminal local + eth0 IPv4 pi Secure Web Site local :~$ avahi-browse -r _https._tcp + eth0 IPv4 pi Secure Web Site local = eth0 IPv4 pi Secure Web Site local hostname = [pi.net] address = [192.168.100.100] port = [50443] txt = ["org.freedesktop.Avahi.cookie=1839282170"] :~$
2. other tools
avahi-publish
avahi-publish-address
avahi-publish-service
avahi-resolve
avahi-resolve-address
avahi-resolve-host-name
avahi-set-host-name
图形工具 avahi-discover
1 2 3 4 5 6 7 8
:~$ sudo apt-get install avahi-discover :~$ avahi-discover Browsing domain 'local' on -1.-1 ... ... Found service 'pi' of type'_https._tcp'in domain 'local' on 2.0. Found service 'transmission' of type'_http._tcp'in domain 'local' on 2.0. Found service 'pi' of type'_http._tcp'in domain 'local' on 2.0. Found service 'pi' of type'_ssh._tcp'in domain 'local' on 2.0.