ABOUT
This service/library publishes CNAME records pointing to the local host over multicast DNS using the Avahi daemon found in all major Linux distributions. Useful as a poor-man’s service discovery or as a helper for named virtual-hosts in development environments.
Since Avahi is compatible with Apple’s Bonjour, these names are usable from MacOS X and Windows too.
See also:
DEPENDENCIES
Besides a running Avahi daemon, this service requires the dbus-python bindings which, in turn, requires the development packages for D-Bus and D-Bus Glib (eg. dbus-devel and dbus-glib-devel in CentOS 7).
INSTALLATION
This package can be installed from source by running:
python setup.py build python setup.py install
Or, you can install the latest stable release from PyPI:
pip install mdns-publisher
Note: If you’re using Python 2.7 and you get errors installing dbus-python, you may need to upgrade your pip version:
pip install --upgrade pip
RUNNING
Pass (one or more) CNAMEs as command-line arguments to mdns-publish-cname:
mdns-publish-cname name01.local name02.local
Names must use the .local domain but can have arbitrary sub-domains:
mdns-publish-cname name01.local name02.local name03.mysubdomain.local
If the server running mdns-publish-cname is being announced over mDNS as myserver.local, all of these names will be answered by Avahi as CNAMEs for myserver.local, regardless of any sub-domains they might have. They remain available as long as mdns-publish-cname is running.
Run mdns-publish-cname with no arguments to find out about the available options.
Note: You can find a sample mdns-publish-cname.service file for systemd in the source repository.
INTEGRATING
The AvahiPublisher class in the mpublisher module can be integrated into your application to have it publish its own CNAMEs.
Metadata
Release files for mdns-publisher 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdns-publisher-0.9.2.tar.gz | 7.7 kB | Without provenance | Details for mdns-publisher-0.9.2.tar.gz |
Release files / mdns-publisher-0.9.2.tar.gz
| Download URL | mdns-publisher-0.9.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b230902a7b0547ac372300af675183c3456a9cb8c46cedde72028e26b4998fce
|
|
BLAKE2b-256 checksum How to use checksums |
5ee49515caa454ca4dffb36df2b1049ae203f01b924d7c0bc2ce0d5864608ab6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mdns-publisher 0.9.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.