Skip to main content

Multicast DNS (mDNS) Beacon to announce multiple CNAME aliases across your local network.

Project description

mDNS Beacon

PyPI - Version PyPI - Python Version tests Codecov Read the Docs PyPI - License

Black pre-commit Contributor Covenant

Multicast DNS (mDNS) Beacon to announce multiple CNAME aliases across your local network. Under development. Use by your own risk❗

Features

  • ✅ Announce multiple aliases on the local network.
  • ✅ Listening utility to discover services during development.
  • ❌ Configuration file.
  • ❌ Windows support.

Quickstart

Install mdns-beacon from the Python Package Index:

$ pip install mdns-beacon

Usage

$ mdns-beacon --help
Usage: mdns-beacon [OPTIONS] COMMAND [ARGS]...

  Simple multicast DNS (mDNS) command line interface utility.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  blink   Announce aliases on the local network.
  listen  Listen for services on the local network.

Announce an example service:

$ mdns-beacon blink example --alias sub1.example --address 127.0.0.1 --type http --protocol tcp
⠋ Announcing services (Press CTRL+C to quit) ...

Listen to a specific service type:

$ mdns-beacon listen --service _http._tcp.local.

                                       🚨📡 mDNS Beacon Listener 📡🚨
┏━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━┓
┃ # ┃ Type              ┃ Name                           ┃ Address IPv4 ┃ Port ┃ Server              ┃ TTL ┃
┡━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━┩
│ 0 │ _http._tcp.local. │ example._http._tcp.local.      │ 127.0.0.1    │ 80   │ example.local.      │ 120 │
│ 1 │ _http._tcp.local. │ sub1.example._http._tcp.local. │ 127.0.0.1    │ 80   │ sub1.example.local. │ 120 │
└───┴───────────────────┴────────────────────────────────┴──────────────┴──────┴─────────────────────┴─────┘

⠧ Listen for services (Press CTRL+C to quit) ...

Credits

This package was created with Cookiecutter and the fedejaure/cookiecutter-modern-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdns_beacon-1.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

mdns_beacon-1.0.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file mdns_beacon-1.0.0.tar.gz.

File metadata

  • Download URL: mdns_beacon-1.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mdns_beacon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1f9470a9748bec79caf895d91bc635ea6792cb1da837078d04872a9176172ae1
MD5 6b8947945f443c0ee0e63f2a1c5ac408
BLAKE2b-256 35cd5aa74803d9735be024955c17679a05cec6e6ab22d1f842e89ec02faf7d65

See more details on using hashes here.

File details

Details for the file mdns_beacon-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mdns_beacon-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mdns_beacon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e963ebf08b72a47813b8602b274a404d899422673fb0237d9089337a1a1306
MD5 1c2e270b80c1a8e1da9eb877ee47c824
BLAKE2b-256 689d3b334e120ecf4a549d39e5ca8b969a7092a3a269a28d1b0c03ce308fec87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page