avahi-publish-service(1)
π avahi-publish-service β the manual page, but make it make sense
okay so bestie, you know how your computer can just announce itself to the whole local network like it's the main character? yeah. that's this. this is the avahi-publish-service(1) page from the General Commands Manual, and it's about registering an mDNS/DNS-SD service or a host name / address mapping using the Avahi daemon. no cap, it's genuinely iconic. β¨
πΈ NAME πΈ
avahi-publish-service β register an mDNS/DNS-SD service, or a host name, or an address mapping, using the Avahi daemon. π
π¦ SYNOPSIS π¦
like, literally copy these exactly:
avahi-publish -s [options] name service-type port [TXT data ...]
avahi-publish-service [options] name service-type port [TXT data ...]
avahi-publish -a [options] host name address
avahi-publish-address [options] host name address
π DESCRIPTION π
Register an mDNS/DNS-SD service or host name/address mapping using the Avahi daemon. that's it, that's the whole vibe. your machine gets to be known. periodt. π
β¨ OPTIONS β¨
okay so first, a vibe check on how you're calling it β there's two modes and you gotta pick one:
- In service registration mode you specify a DNS-SD service name (e.g.
"Lennart's Files"), a service type (e.g._http._tcp) and an IP port number for the service β and optionally any number of TXT record strings after that on the command line. π - In address/host name registration mode you specify a fully qualified host name and an address (IPv4 or IPv6). π
now the flags themselves:
-s,--serviceβ register a service.avahi-publish-serviceis equivalent toavahi-publish -s. same thing, different font. π-a,--addressβ register an address/host name mapping.avahi-publish-addressis equivalent toavahi-publish -a. π«Ά-v,--verboseβ enable verbose mode. she talks more. we love that for her. π£οΈ-H,--host=HOSTNAMEβ specify a host name for this service, in case it doesn't reside on the local host. heads up: this host name needs to be fully qualified and resolvable using mDNS or unicast DNS. no shortcuts, bestie. π-d,--domain=DOMAINβ publish the service in the specified domain. if you omit it, the Avahi daemon will publish it in its default domain (usually.local). π--subtype=SUBTYPEβ register the service with an additional subtype in addition to the main type. DNS-SD subtypes have the form_anon._sub._ftp._tcp, where_anonis the identifier of the subtype and_ftp._tcpis the main type. and the flex? you may pass this option multiple times to register the service with multiple subtypes. stacking them like accessories. π β¨-f,--no-failβ don't fail if the daemon is not found running. instead, wait until it appears. and if it disconnects, try to reconnect. loyal girlfriend energy fr fr. ππ-h,--helpβ show help. π-V,--versionβ show version information. π
ngl, none of these are marked dangerous β but do keep in mind the -H host name has to be fully qualified and actually resolvable, that's the original's whole point, don't come for me. π
π AUTHORS π
The Avahi Developers <avahi (at) lists (dot) freedesktop (dot) org>; Avahi is available from http://avahi.org/ β legends, honestly. π«‘
π₯ SEE ALSO π₯
go read those next, iykyk. π
π COMMENTS π
This man page was written using xml2man(1) by Oliver Kurth. shoutout Oliver. π
and that's the whole page babes π β brought to you by the Manuals collection, in the User section, for avahi-publish-service(1). go publish something iconic. π
π¦ where this page comes from
- alpine 3.22: avahi-doc 0.8-r21 Β· LGPL-2.1-or-later
- alpine 3.23: avahi-doc 0.8-r23 Β· LGPL-2.1-or-later
- centos-stream 9: avahi-tools 0.8-24.el9 Β· LGPLv2+
- debian bookworm: avahi-utils 0.8-10+deb12u1
- debian trixie: avahi-utils 0.8-16
- nixpkgs unstable: avahi 0.8
- nixpkgs unstable: avahi-compat 0.8
- opensuse-leap 16.0: avahi-utils 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi-utils 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi-utils 0.8-160000.6.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: avahi-utils 0.8-160000.6.1 Β· LGPL-2.1-or-later
- ubuntu jammy: avahi-utils 0.8-5ubuntu5
- ubuntu jammy: avahi-utils 0.8-5ubuntu5.5
- ubuntu noble: avahi-utils 0.8-13ubuntu6
- ubuntu noble: avahi-utils 0.8-13ubuntu6.2
- ubuntu questing: avahi-utils 0.8-16ubuntu3
- ubuntu questing: avahi-utils 0.8-16ubuntu3.2
- ubuntu resolute: avahi-utils 0.8-18ubuntu1
- ubuntu resolute: avahi-utils 0.8-18ubuntu1.1
- ubuntu stonking: avahi-utils 0.8-18ubuntu1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms