Neither
Resolv.getname( "fred.local" )
Resolv.getaddress( "10.0.1.18" )
nor
Socket.gethostbyaddr([10,0,1,18].pack("CCCC"))
seem to recognize hosts on the local subnet which use zeroconf/bonjour. I need to find the hostname of a zeroconf computer on the local subnet given its ip address.
Those function speak regular TCP and DNS, I would assume you need to use a bonjour API, such as http://dnssd.rubyforge.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With