nslookup和dig正在解析地址,但ruby程序抛出错误。
这是堆栈跟踪
10: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient.rb:67:in `get'
9: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
8: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
7: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
6: from /usr/local/lib/ruby/2.5.0/net/http.rb:909:in `start'
5: from /usr/local/lib/ruby/2.5.0/net/http.rb:920:in `do_start'
4: from /usr/local/lib/ruby/2.5.0/net/http.rb:935:in `connect'
3: from /usr/local/lib/ruby/2.5.0/timeout.rb:103:in `timeout'
2: from /usr/local/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
1: from /usr/local/lib/ruby/2.5.0/net/http.rb:936:in `block in connect'
/usr/local/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect': Failed to open TCP connection to ******:80 (getaddrinfo: Try again) (SocketError)