Posted over 4 years ago. Visible to the public. Linked content.

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

Owner of this card:

Avatar
basiszwo
Last edit:
over 4 years ago
by basiszwo
Tags:
dns, ruby
Posted by basiszwo to NinjaConcept KB
This website uses cookies to improve usability and analyze traffic.
Accept or learn more