我开始使用whoisrb,我注意到域名从一些注册人返回零联系信息。
例如:
domain_name = ARGV[0]
r = Whois.whois(domain_name)
t=r.registrant_contact
if t == nil
puts 'Registrant Contact is empty.'
end
将返回“注册联系人为空”。试图访问联系人属性会导致一个错误,比如undefined method 'id' for nil:NilClass (NoMethodError)。
如果我检查正在返回的原始记录,puts r,我可以看到
我使用Terraform为我部署的CloudDNS创建了一条GCP记录。在控制台中,我可以看到我创建的托管区域的区域详细信息,当我单击它时,我可以看到分配了FQDN、TTL300和IPV4地址的DNS记录。直接浏览IP运行良好,所以app/MIG部署没有任何问题。 回到家,我跑 $ gcloud dns record-sets list --zone="my-zone"
NAME TYPE TTL DATA
gcp.example.com. NS 2
因此,我已经将我的可湿性粉剂网站从我的共享主机迁移到了google云服务器。我已经设置了静态ip地址,并将cloudflare上当前的A类型记录编辑为该静态IP地址,将CNAME记录编辑为我的域名。几个小时后,我试图通过SSL证书,通过谷歌云中的SSH工具来保护我的网站,但它说: Warning: The domain 'mydomain.com' resolves to a different IP address than
the one detected for this machine, which is 'mystaticip'. Please f