All Projects → Jack12816 → docker-mdns

Jack12816 / docker-mdns

Licence: other
Simple mDNS/ZeroConf demonstration of a nginx container, acessible at http://nginx.local

Programming Languages

Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-mdns

Ciao
Publish and discover services using Bonjour
Stars: ✭ 50 (+100%)
Mutual labels:  zeroconf, mdns
NetService
Swift NetService (Bonjour / Zeroconf / mDNS) implementation for Linux
Stars: ✭ 103 (+312%)
Mutual labels:  zeroconf, mdns
GCXMulticastDNSKit
Multicast DNS framework for iOS
Stars: ✭ 16 (-36%)
Mutual labels:  zeroconf, mdns
MDNS Generic
mDNS Library for nRF52, SAMD21, SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, AVR Mega, RP2040-based boards, etc. using Ethernet W5x00. Supports mDNS (Registering Services) and DNS-SD (Service Discovery). Ethernet_Generic library is used as default for W5x00
Stars: ✭ 22 (-12%)
Mutual labels:  mdns
fate
Fate is a modern science chinese name create tool.
Stars: ✭ 1,974 (+7796%)
Mutual labels:  make
netdisco
🔎 Python library to scan local network for services and devices.
Stars: ✭ 252 (+908%)
Mutual labels:  mdns
VindicateTool
LLMNR/NBNS/mDNS Spoofing Detection Toolkit
Stars: ✭ 40 (+60%)
Mutual labels:  mdns
make
The Ultimate Makefile to compile all your C, C++, Assembly and Fortran projects
Stars: ✭ 41 (+64%)
Mutual labels:  make
mdns-tunneller
Tunnels two (or more) mDNS domains together
Stars: ✭ 74 (+196%)
Mutual labels:  mdns
uDevkit-IDE
An IDE for uDevkit or C/C++ projects with Git written in Qt5
Stars: ✭ 15 (-40%)
Mutual labels:  make
radiale
What if home automation was homoiconic? Just transformations of data? No more YAML!
Stars: ✭ 21 (-16%)
Mutual labels:  mdns
automake
Mirror of git://git.savannah.gnu.org/automake.git
Stars: ✭ 36 (+44%)
Mutual labels:  make
core.inc.mk
My utility belt `Makefile` (and my memory belt in docs)
Stars: ✭ 14 (-44%)
Mutual labels:  make
rebuild
Zero-dependency, reproducible build environments
Stars: ✭ 48 (+92%)
Mutual labels:  make
taskit
A Task Runner in Bash
Stars: ✭ 35 (+40%)
Mutual labels:  make
make
Makefiles
Stars: ✭ 31 (+24%)
Mutual labels:  make
makego
Makefile setup for our Golang projects.
Stars: ✭ 65 (+160%)
Mutual labels:  make
mdnsd
Jeremie Miller's original mdnsd
Stars: ✭ 43 (+72%)
Mutual labels:  mdns
Francis
Bonjour browser for macOS and iOS
Stars: ✭ 25 (+0%)
Mutual labels:  mdns
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (+148%)
Mutual labels:  make

Docker mDNS Demo

This prototype is dedicated to demonstrate the setup of Docker containers which are accessible by mDNS addresses. The regular ZeroConf TLD is .local. So with the help of this demo you can learn how to setup a new container and make it available as nginx.local.

Requirements

  • Docker (>=17.06.0-ce) (lower should work, too)
  • Docker Compose (>=1.15.0) (lower should work, too)
  • GNU Make (>=4.2.1)
  • jq (>=1.5)
  • Host enabled Avahi daemon
  • Host enabled mDNS NSS lookup

Getting started

All you need to to is to run the following command:

$ make start

This command will take care of downloading the nginx:latest docker image and building the custom image on top of it. Afterwards the new image will be booted.

Start a second terminal and type the following command to verify your host configuration:

$ make test

If everything is fine, you will see something like this:

# Test the IP/mDNS setup
#
# > Container ip: 172.17.0.2
#
# DNS resolution test (nginx.local):
PING nginx.local (172.17.0.2) 56(84) bytes of data.
64 bytes from 172.17.0.2 (172.17.0.2): icmp_seq=1 ttl=64 time=0.062 ms
64 bytes from 172.17.0.2 (172.17.0.2): icmp_seq=2 ttl=64 time=0.053 ms
64 bytes from 172.17.0.2 (172.17.0.2): icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 172.17.0.2 (172.17.0.2): icmp_seq=4 ttl=64 time=0.079 ms

--- nginx.local ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3034ms
rtt min/avg/max/mdev = 0.053/0.074/0.102/0.018 ms
#
# Test was successful. Yay.

If the test fails, read on.

Host configs

Install the nss-mdns package, enable and start the avahi-daemon.service. Then, edit the file /etc/nsswitch.conf and change the hosts line like this:

hosts: ... mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns ...

Further reading

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].