From: Nigel Gilbert Date: 2001-12-27T19:03:31+09:00 Subject: [ruby-talk:29466] How to do a DNS lookup? --Apple-Mail-9--1072044989 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I sent this to comp.lang.ruby, but it never reached ruby-talk because of the gateway problem. Since I didn't get any answer to my posting, I'm resending it: > I have an IP address such as '111.222.111.222' and want to resolve this > to a > domain name. What's the simplest Ruby code that will return the name? > There doesn't seem to be anything expressly designed to do this that I > can > see in the net libraries, or am I missing something? > > Thanx > > Nigel > --Apple-Mail-9--1072044989 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII I sent this to comp.lang.ruby, but it never reached ruby-talk because of the gateway problem. Since I didn't get any answer to my posting, I'm resending it: I have an IP address such as '111.222.111.222' and want to resolve this to a domain name. What's the simplest Ruby code that will return the name? There doesn't seem to be anything expressly designed to do this that I can see in the net libraries, or am I missing something? Thanx Nigel --Apple-Mail-9--1072044989--