as we know, bonjour is a zero-configuration networking, enables automatic discovery of devices and services on a local network using industry standard IP protocols. it is developed by apple company.
for more information, you can search from the website below.
the latest version is mDNSResponder-567, you can download from here http://opensource.apple.com/tarballs/mDNSResponder/
and then start to install
tar xzvf mDNSResponder-567.tar.gz cd mDNSResponder-567 cd mDNSPosix make os=linux make install os=linux
and start bonjour
cd /etc/init.d service mdns start(stop/restart/reload)
and then you can use dns-sd tool in the shell
create test service
dns-sd -R device _smartenergy._tcp local 222