DNS-SD

From air
Jump to navigation Jump to search

Protocole de publication et de découverte de service sur un réseau local

  • Bonjour/Rendez-Vous = dns sd, avec serveur dns; unicast
  • mDNS/Zeroconf = multicast (même protocole, stockage par clients)


CLI

MacOS

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dns-sd.1.html

Term 1 (Service Registration)

dns-sd -R "MyWebServer" _http._tcp . 8080 path=/index.html

^C


Term 2 (Service Discovery)

dns-sd -B _http._tcp

DATE: ---Fri 28 Feb 2014---
21:05:47.634  ...STARTING...
Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
21:06:16.951  Add        2   4 local.               _http._tcp.          MyWebServer
21:06:27.486  Rmv        0   4 local.               _http._tcp.          MyWebServer

Linux

Windows

API

Python

Java

Bundles OSGi

Links

Alternative DNS Servers free book http://jpmens.net/2010/10/29/alternative-dns-servers-the-book-as-pdf/