avahi-publish-service(1)

πŸ“¦
version 0.8 Β· 3 versions
, in alpine 3.22, alpine 3.23, centos-stream 9, debian bookworm, debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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-service is equivalent to avahi-publish -s. same thing, different font. πŸ’…
  • -a, --address β€” register an address/host name mapping. avahi-publish-address is equivalent to avahi-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 _anon is the identifier of the subtype and _ftp._tcp is 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. 🌟