https://github.com/msantos/emdns
Erlang multicast DNS and DNS-SD (DNS Service Discovery)
https://github.com/msantos/emdns
Last synced: about 1 month ago
JSON representation
Erlang multicast DNS and DNS-SD (DNS Service Discovery)
- Host: GitHub
- URL: https://github.com/msantos/emdns
- Owner: msantos
- Created: 2010-02-09T02:08:49.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-02-09T22:29:42.000Z (over 15 years ago)
- Last Synced: 2025-04-28T18:06:14.798Z (about 1 month ago)
- Language: Erlang
- Homepage:
- Size: 73.2 KB
- Stars: 34
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
emdns is a cleverly named implementation of the multicast DNS (aka
Bonjour, aka ZeroConf) and DNS-SD (DNS Service Discovery) protocols
for Erlang.Eventually, it will support:
http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt
BUILD
make
QUICK START
Assume you have two hosts "nul" and "ack". Any multicast DNS services
are disabled on "nul". "ack" runs Mac OS X.Host Entry
1. Login to "ack". From a shell, run:
$ ping nul.local
ping: unknown host nul.local2. On "nul", start erl:
$ erl -pa ebin
> emdns_server:start().
{ok,<0.35.0>}
> emdns_server:debug(true).
ok
> A = emdns:service(host). % assumes "nul" has a reverse DNS entry
<<0,0,132,...>>
> emdns_server:send(A).
ok3. On "ack", run:
$ ping nul.local
PING nul.local (192.168.1.10): 56 data bytes
64 bytes from 192.168.1.10: icmp_seq=0 ttl=64 time=4.471 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=64 time=2.611 ms4. Set up a DAAP service
> D = emdns:service(daap).
> emdns_server:send(D).5. On "ack", in iTunes, check "Devices" for an entry named "erlMOTE".