Skip to content

Repository files navigation

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.

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

19 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Contributors

Languages