Mark Harrison Mark Harrison - 1 year ago 82
Python Question

Simplest way to publish over Zeroconf/Bonjour?

I've got some apps I would like to make visible with zeroconf.

  1. Is there an easy scriptable way to do this?

  2. Is there anything that needs to be done by my network admin to enable this?

Python or sh would be preferrable. OS-specific suggestions welcome for Linux and OS X.

Answer Source

Or you can just use bash:

dns-sd -R <Name> <Type> <Domain> <Port> [<TXT>...]

This works by default on OS X. For other *nixes, refer to this easy workaround.