Tag: whois

为ruby whois gem设置whois服务的地址

使用ruby whois gem,如何设置whois服务的服务器地址? 设置bind_host,我收到一个错误。 > whois_client = Whois::Client.new(bind_host: “192.0.47.59”, bind_port: 43) => #”192.0.47.59″, :bind_port=>43}> > record = whois_client.lookup(‘wandajackson.com’) Whois::ConnectionError: Errno::EADDRNOTAVAIL: Can’t assign requested address – bind(2) for “192.0.47.59” port 43 from (irb):4