Thanx
Nigel
N> I have an IP address such as '111.222.111.222' and want to resolve this to a
N> domain name. What's the simplest Ruby code that will return the name?
N> There doesn't seem to be anything expressly designed to do this that I can
N> see in the net libraries, or am I missing something?
You have resolv.rb in the distribution
pigeon% ruby -rresolv -e 'p Resolv.getname("138.102.114.1").to_s'
"moulon.moulon.inra.fr"
pigeon%
probably you need ruby >= 1.6.5
--
Guy Decoux