Fixing "SocketError: getaddrinfo: Name or service not known" with Ruby's resolv-replace.rb

we had the same error and google helped us find the linked solution.

Just require "resolv-replace.rb" during app startup and all should be good.

Further information:

  • https://www.omniref.com/ruby/2.1.1/symbols/Resolv
  • https://rubygems.org/gems/rubysl-resolv
basiszwo About 9 years ago