Difference between revisions of "DNS-SD"

From air
Jump to navigation Jump to search
Line 8: Line 8:
 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dns-sd.1.html
 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dns-sd.1.html
   
Term 1
+
Term 1 (Service Registration)
 
<pre>
 
<pre>
 
dns-sd -R "MyWebServer" _http._tcp . 8080 path=/index.html
 
dns-sd -R "MyWebServer" _http._tcp . 8080 path=/index.html
Line 16: Line 16:
   
 
 
Term 2
+
Term 2 (Service Discovery)
 
<pre>
 
<pre>
 
dns-sd -B _http._tcp
 
dns-sd -B _http._tcp
Line 26: Line 26:
 
21:06:27.486 Rmv 0 4 local. _http._tcp. MyWebServer
 
21:06:27.486 Rmv 0 4 local. _http._tcp. MyWebServer
 
</pre>
 
</pre>
 
 
   
 
===Linux===
 
===Linux===

Revision as of 22:08, 28 February 2014

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

  • Utilise l'IP Multicast (mDNS)
  • aka Rendez-Vous, Apple Bonjour


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