mDNS publisher and resolver for Termux (Android). Publica movil.local via Zeroconf y resuelve .local via UDP multicast.
Go to file
Andrés Eduardo García Márquez 6f6b9715a4 feat: initial release - mDNS publisher and resolver for Termux
- mdns-publish.py: publishes movil.local:8022 via Zeroconf
- mdns-resolve: raw UDP mDNS resolver (RFC 6762)
- ssh-mdns-proxy: SSH ProxyCommand with mDNS/Tailscale/cache fallback
- install.sh: automated installer with boot integration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 21:05:46 -05:00
.gitignore feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00
README.md feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00
install.sh feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00
mdns-publish.py feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00
mdns-resolve feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00
ssh-mdns-proxy feat: initial release - mDNS publisher and resolver for Termux 2026-02-27 21:05:46 -05:00

README.md

termux-mdns

mDNS publisher and resolver for Termux (Android).

Publishes movil.local on the local network via Zeroconf so other machines can find the phone by hostname instead of dynamic DHCP IPs.

Components

Script Purpose
mdns-publish.py Publishes movil.local:8022 as an SSH service via mDNS/Zeroconf
mdns-resolve Resolves .local hostnames via raw UDP multicast (RFC 6762)
ssh-mdns-proxy SSH ProxyCommand with mDNS → Tailscale → cache fallback chain

Install

pkg install python
pip install zeroconf
./install.sh

Usage

From any machine on the LAN:

ssh -p 8022 movil.local

From the phone to other machines:

ssh dell   # resolves via mdns-resolve → ssh-mdns-proxy

Boot

The installer adds mdns-publish.py to ~/.termux/boot/start-services so it starts automatically when Termux boots.

License

MIT