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.
require "resolv-replace.rb"
Further information: