Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes:

> gethostbyname seems to be a method of IPSocket and Socket only.
> What is the correct way to invoke it in ruby?  Everything I have tried 
> tells me thee is no data for the machine I am on, although nslookup
> shows its existence correctly.

There's TCPSocket.gethostbyname() and TCPSocket.getaddress().

Dave