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

Posted . Visible to the public.

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
Last edit
basiszwo
Tags
Posted by basiszwo to NinjaConcept KB (2015-02-10 16:19)