Hi there,

I've released a working version of mdnsd, an ISC licensed
implementation of MDNS/DNS-SD for OpenBSD, a replacement for
avahi/bonjour (http://github.com/haesbaert/mdnsd).
I've started this cause I hate having a MDNS/DNS-SD implementation
with 60k+ lines (avahi).


The querier is almost full and so all the browsing/resolving functions
are fully functional, so you can use it as a browser tool for mdns
services by now.

Port is at: http://haesbaert.org/OpenMDNS/mdns.tar.gz

The daemon chroots, uses the imsg frameworks and tries to follow the
other OpenBSD daemons. Mdnsctl is also in ripctl/ospfctl fashion.

Install the port and have user and group _mdnsd created, here are some examples:
# fire up mdnsd in the specified interface:
mdnsd -d em0

Play with mdnsctl (below are some examples running against Linux/Avahi):

# T_A lookup
elendil:src: mdnsctl lookup ubuntu810desktop.local
Address: 192.168.8.26

# Reverse (PTR) lookup
elendil:src: mdnsctl rlookup 192.168.8.26
Hostname: ubuntu810desktop.local

# T_HINFO lookup
elendil:haesbaert: mdnsctl lookup -h ubuntu810desktop.local
Cpu: I686
Os: LINUX

# Browsing for all services
elendil:src: mdnsctl browse all
+++ servico teste teste teste numero 4               http                 tcp
+++ servico teste teste teste numero 1               http                 tcp
+++ servico teste teste teste numero 3               http                 tcp
+++ servico teste teste teste numero 2               http                 tcp
+++ ubuntu810desktop [00:0c:29:4d:22:ce]             workstation          tcp

# Browsing and resolving all http services
elendil:src: mdnsctl browse -r http tcp
+++ servico teste teste teste numero 2               http                 tcp
 Name: servico teste teste teste numero 2
 Priority: 0
 Weight: 0
 Port: 80
 Hostname: ubuntu810desktop.local
 Address: 192.168.8.26
 Txt: LALALA=LIXO
+++ servico teste teste teste numero 1               http                 tcp
 Name: servico teste teste teste numero 1
 Priority: 0
 Weight: 0
 Port: 80
 Hostname: ubuntu810desktop.local
 Address: 192.168.8.26
 Txt: LALALA=LIXO
....
....

# MDNSD will also answer T_A, T_HINFO and reverse queries.
r...@ubuntu810desktop:~# avahi-resolve-host-name elendil.local
elendil.local   192.168.8.20

As soon as I have the time I'll write some manpages.

  • Mdns Christiano F. Haesbaert

Reply via email to