$linuxjunkies
>

avahi-browse(1)

Browse for mDNS/DNS-SD services available on the local network.

UbuntuDebianFedoraArch

Synopsis

avahi-browse [OPTION]... SERVICE-TYPE

Description

avahi-browse is a command-line tool for discovering services advertised on the local network using Avahi (a system for using mDNS/DNS-SD for zero-configuration networking). It allows you to search for and list services of a specific type, such as HTTP servers, SSH hosts, or printers.

SERVICE-TYPE should be a fully qualified DNS-SD service type, such as _http._tcp or _ssh._tcp. Use avahi-browse -b to browse all available services without specifying a type, or use avahi-browse -r to resolve service details.

Common options

FlagWhat it does
-a, --allshow all services, regardless of their state (deprecated; use -d instead)
-b, --browse-domainsbrowse for available DNS-SD browsing domains instead of services
-d, --dump-domainsdump a list of all available DNS-SD browsing domains
-r, --resolveresolve services to show full details (addresses, ports, TXT records)
-t, --terminateterminate after listing all currently available services
-c, --cacheshow cached services instead of monitoring for new ones
-l, --ignore-localignore local services (services not from remote hosts)
-m, --ignore-markingsignore special markings (such as preferred/deprecated) in output
-v, --verboseenable verbose mode with additional debugging information
-h, --helpdisplay help message and exit

Examples

browse for all HTTP services on the local network and monitor for changes

avahi-browse _http._tcp

list all currently advertised HTTP services and exit immediately

avahi-browse -t _http._tcp

browse SSH services with full resolution, showing IP addresses and ports

avahi-browse -r _ssh._tcp

browse for all available DNS-SD service domains

avahi-browse -b

list all available IPP printers with full details and exit

avahi-browse -t -r _ipp._tcp

display cached HTTP services without monitoring for updates

avahi-browse -c _http._tcp

browse for workstations on the network, ignoring local services

avahi-browse -l _workstation._tcp