Hi All,
I am attempting to use the DNS-SD gem to return information about
bonjour on Leopard. When I use the command line tool with the command
“$ dns-sd -B _sftp-ssh._tcp” I get the following response:
Browsing for _sftp-ssh._tcp
Timestamp A/R Flags if Domain Service
Type Instance Name
8:34:04.871 Add 3 5 local. _sftp-
ssh._tcp. DL Office Desktop
8:34:04.872 Add 3 9 local. _sftp-
ssh._tcp. DL Office Desktop
8:34:04.872 Add 3 10 local. _sftp-
ssh._tcp. DL Office Desktop
8:34:04.872 Add 3 7 local. _sftp-
ssh._tcp. DL Office Desktop
8:34:04.872 Add 2 8 local. _sftp-
ssh._tcp. DL Office Desktop
However, when I run the following I get no response back:
#!/usr/bin/env ruby -wKU
require ‘rubygems’
require ‘dnssd’
DNSSD.browse("_sftp-ss._tcp") do |browse_reply|
puts browse_reply
end
I am using ruby 1.8.6 on Leopard 10.5.3 with dnssd-0.6.0 (ruby and the
gem were part of the standard Leopard install). My ultimate goal will
be to browse for DNSSD services and then resolve a particular service.
Thank you in advance for any help you might be able to render.
Don L., Psy. D.
President, Vanguard Custom Software
“We create simple applications which solve complex problems”
[email protected]
(917) 842-2911