Zeroconf / mDNS / Bonjour

I have just discovered a whole area of IP based LAN technology I knew nothing about until this week! It’s known by various names including Zeroconfig, mDNS and Bonjour and I think this has the potential to completely change home networking.

I have been toying with setting up a DNS server at home to resolve all the host names for the machines on my local LAN, but in my research I spotted a suggestion to use Zeroconfig instead. After a bit of digging I realised this stuff looks very good.

What ever you call it, it essentially does 3 things: IP address allocation without DHCP (in the range 169.254.x.x), host name resolution without a DNS server or local hosts files (Multicast DNS) and dynamic service discovery (which is more than just IP address lookups, this is IP address, protocol and port so a machine can advertise it has a camera feed available via http on a particular port - very slick).

It appears that Apple are leading this effort and brand it under the name Bonjour. So Mac’s have this technology built in. If you’ve used iTunes and accessed a shared iTunes library on another machine then you’ve already used Bonjour.
On Linux there are a couple of implementations, howl (which seems to be almost dead) and avahi/nss-mdns. I installed this on my ubuntu server and it works perfectly.

For Windows, Apple have released Bonjour for Windows. It looks like it just does printer sharing but it definitely also does host name resolution via mDNS. The other good thing is that it a free download. I don’t suppose Vista has it built in, it would be so unlike Microsoft to actually follow a standard espcially since this one is designed by Apple.
The architect behind the whole thing is Stuart Cheshire from Apple, and there is a good video of him presenting Bonjour and zeroconfig on Google Video.

Some other good links are :
http://www.ifcx.org/wiki/LocalNetworking.html (good overview)
http://avahi.org (Linux)
http://0pointer.de/lennart/projects/nss-mdns (Linux)
http://www.apple.com/macosx/features/bonjour (Mac and Windows)
http://files.zeroconf.org/rfc3927.txt (IP address allocation)

One Response to “Zeroconf / mDNS / Bonjour”

  1. Martin Says:

    Stuart Cheshire popped up on my Ipod today in a Podcast recorded by IT Conversations. There is now a plug in for Asterisk, the open source PBX, to automatically configure SIP clients. This is a very cool application for Bonjour. Bonjour could basically enable seamless VOIP roaming between networks. This may be the application that finally gives Bonjour the accolade it deserves. Listen to Stuart here:
    http://www.itconversations.com/shows/detail1711.html

Leave a Reply