我完全迷失在这里。我试图根据文档https://whoisrb.org/设置whois gem。不幸的是,当我尝试在我的机器上本地执行whois时,我总是遇到错误。 错误消息: Unable to find a WHOIS server for `;; answer received from 192.168.178.1 (75 bytes) ;; ;; security level : unch
我使用的是红宝石whois宝石,我想知道是否有办法在没有免责声明的情况下返回纯文本格式。 这里的.eu域名的例子: % The WHOIS service offered by EURid and the access to the records
% in the EURid WHOIS database are provided for information purposes
% onl
class DomaincheckerController < ApplicationController
def index
end
def store
r =Whois.whois(secure_params['domain'])
render :text => "#{r}"
end
private
def se
我开始使用whoisrb,而且我注意到某些注册服务商的域名返回了无联系信息。 例如: domain_name = ARGV[0]
r = Whois.whois(domain_name)
t=r.registrant_contact
if t == nil
puts 'Registrant Contact is empty.'
end
将返回 “注册人联系信息是空的