kj WOOLLEY
3/28/2006 8:09:00 PM
On 28/03/06, Minkoo Seo <minkoo.seo@gmail.com> wrote:> Thank you. This will be of great help.>> But, as you quoted, resolve.rb says "Resolv is a thread-aware DNS> resolver library written in Ruby", so it is DNS resolver and I accuse> resolve.rb of misnomer because it does not follow Net::xxx rules.> Futhermore, reading /etc/hosts does not justify its name, because I> believe that its name, resolve, was named after DNS resolver. (BTW, do> you really think reading /etc/hosts is not related to dns resolver's> own job?)It may be illuminating to study the functionality of the resolverlibrary found on most Unix systems. "man resolver" gives someinformation on Linux systems -- other systems will vary. If you notethe name of the library that gets linked in, the name of the modulewill make much more sense to you.> Actually lack of naming coherency in Ruby is quite annoying more often> than not.>> Sincerely,> Minkoo SeoOn the contrary, I would be most confused by using Net::DNS to resolveentries in a hosts file -- but immediately knew where to look for ageneral-purpose name resolution library. Sometimes historical reasonsare good ones.Cheers,kjw