From linux, DNSSD.register 'block' example fails #12

knewter opened this Issue Jan 4, 2013 · 0 comments


None yet

1 participant


running the DNSSD.register 'block' example fails on linux with

$ ruby sample/register.rb
Registering some blackjack services
(run sample/browse.rb or sample/resolve.rb)

registered blockless (no callback)
*** WARNING *** The program 'ruby' called 'DNSServiceAddRecord()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see
/home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:39:in _add_record': DNSSD operation failed with error code: -65544 (DNSSD::UnsupportedError)
from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:39:in
from sample/register.rb:26:in block in <main>'
from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:164:in
from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:226:in register'
from sample/register.rb:24:in


Removing the call to DNSSD.register 'block' resolves this issue. Registering the service at the end of the file works fine, as well as the registration with no callback.

This isn't a problem for my use case (literally just trying to advertise a service's availability for now), but figured I'd report it anyway.

Again, I can help with whatever you need to help get more info on this if it's worthwhile to you. Otherwise, this is just another data point for yon internet wanderers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment