Difference between revisions of "Mesh/Firmware/Zeroconf"

added more details
(added more research and tools)
(added more details)
Line 1: Line 1:
We need a basic DNS client (and server) on the nodes. We want to use the [http://en.wikipedia.org/wiki/Service_Location_Protocol Service Location Protocol] (SLP) to implement a domain service. The domain server  
We need a basic DNS client (and server) on the nodes. We want to use the [http://en.wikipedia.org/wiki/Service_Location_Protocol Service Location Protocol] (SLP) to implement a domain service. The domain server returns a service (or files) from a destination (typically based on an IP address), such as google.com resolves the servers at the 74.125.224.65 address.


=Tools=
=Software=


== [http://avahi.org/ avahi] ==  
== [http://avahi.org/ avahi] ==  
Line 16: Line 16:
The OpenWRT package mdns-utils is actually just compiling part of Apple's [http://opensource.apple.com/tarballs/mDNSResponder/ mDNSResponder].
The OpenWRT package mdns-utils is actually just compiling part of Apple's [http://opensource.apple.com/tarballs/mDNSResponder/ mDNSResponder].


The mDNSClient utility only outputs lines to stderr like:
The mDNSClient utility only outputs lines to stderr (name, service type, and domain):


   *** Found name = 'Foo', type = '_afpovertcp._tcp.', domain = 'local.'
   *** Found name = 'Foo', type = '_afpovertcp._tcp.', domain = 'local.'
So only the service name, service type and domain.


The code that outputs this line is in the file mDNSResponder/mDNSPosix/Client.c in the function BrowseCallback.
The code that outputs this line is in the file mDNSResponder/mDNSPosix/Client.c in the function BrowseCallback.
289

edits