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, Bonjour 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 device could, for example, advertise it has a live 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 already 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, even if you are on Windows. On Linux there are a couple of implementations, howl (which seems to be almost dead) and avahi/nss-mdns. I installed the latter 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://www.apple.com/macosx/features/bonjour (Mac and Windows)
http://files.zeroconf.org/rfc3927.txt (IP address allocation)