{"id":109,"date":"2005-07-29T15:57:27","date_gmt":"2005-07-29T14:57:27","guid":{"rendered":"http:\/\/www.paullynch.org\/blog\/?p=109"},"modified":"2005-07-29T15:57:27","modified_gmt":"2005-07-29T14:57:27","slug":"zeroconf-bonjourrendezvous-on-linux","status":"publish","type":"post","link":"https:\/\/www.paullynch.org\/blog\/?p=109","title":{"rendered":"Zeroconf (Bonjour\/Rendezvous) on Linux"},"content":{"rendered":"<p>One of the small advantages of running MacOS X is the ability to refer to machines that aren&#8217;t represented in (a static) DNS and have dynamic IP address by a simple name. Now that we are moving away from a FreeBSD\/Solaris server setup to a MacOS X one, there is still some advantage to using cheap disposable Linux servers.  So how about Zeroconf names for Linux? <!-- more --><\/p>\n<p>It turns out to be easier than I feared.  I was expecting the usual Linux mess of inconsistent standard support with the resulting incomprehensible configuration script, but the Apple team have done a great job.<\/p>\n<p>If you want to install Bonjour on your Linux (or BSD) server, read on.<\/p>\n<p>Apple&#8217;s <a href=\"http:\/\/developer.apple.com\/networking\/bonjour\/\">Bonjour developer page<\/a> links to the <a href=\"http:\/\/www.opensource.apple.com\/darwinsource\/tarballs\/apsl\/mDNSResponder-107.1.tar.gz\">source code<\/a> for the latest stable version, or you can grab a copy from CVS.  Either way, you will need an Apple id and to sign their license agreement.<\/p>\n<p>I downloaded to my PowerBook, and used scp to copy the tarball over to my Asterix (Linux) server.  Open the tarball, and cd into the Posix directory (cd mDNSResponder-107.1\/mDNSPosix).<\/p>\n<p><code><br \/>\nmake os=linux<br \/>\n.\/build\/prod\/mDNSClientPosix<br \/>\n^C<br \/>\nmake os=linux install<br \/>\n<\/code><\/p>\n<p>End of story.  Reboot to make it active, although you could start it without rebooting (I like to confirm that the boot process still works correctly when adding a service).  There are a couple of man pages: libnss_mdns, nss_mdns.conf, but there is nothing that you need to configure if all you want is the hostname support.<\/p>\n<p>Going any deeper into zeroconf means that you need to add some support code into your apps, so refer to the documentation pages for that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the small advantages of running MacOS X is the ability to refer to machines that aren&#8217;t represented in (a static) DNS and have dynamic IP address by a simple name. Now that we are moving away from a FreeBSD\/Solaris server setup to a MacOS X one, there is still some advantage to using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[37],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-server-side","tag-unix-admin"],"_links":{"self":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}