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.