Look at the methods on `Socket`, like `Socket.gethostbyaddr([127,0,0,1].pack("CCCC"))`