From: Eric Hodel Date: 2011-07-26T03:50:16+09:00 Subject: [ruby-core:38501] [Ruby 1.8 - Bug #5095][Rejected] Resolv should call res_init() Issue #5095 has been updated by Eric Hodel. Status changed from Open to Rejected Resolv is pure ruby and does not use resolver(3) to perform name lookups. If /etc/resolv.conf has changed you should create a new Resolve::DNS instance. ---------------------------------------- Bug #5095: Resolv should call res_init() http://redmine.ruby-lang.org/issues/5095 Author: Orion Poplawski Status: Rejected Priority: Normal Assignee: Category: lib Target version: ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux] At least on linux, when /etc/resolv.conf changes it is necessary to call res_init() to load the new resolver information. The Resolv library does not call res_init() and there appears to be no way to call it. See http://projects.puppetlabs.com/issues/2776 for an example of the problem. -- http://redmine.ruby-lang.org