ruby - whois-rb gem produces error: "Whois::ServerNotFound" -


i'm totally lost here. trying set whois gem according documentation @ https://whoisrb.org/. unfortunately i'm getting error when trying perform whois, locally on machine.

error message:

unable find whois server `;; answer received 192.168.178.1 (75 bytes) ;; ;; security level : unchecked ;; ->>header<<- opcode: query, status: noerror, id: 51102 ;; flags: qr rd ra cd; query: 1, answer: 1, authority: 0, additional: 1 opt pseudo-record : payloadsize 512, xrcode 0, version 0, flags 32768 ;; question section (1 record) ;; google-public-dns-b.google.com. in ;; answer section (1 record) google-public-dns-b.google.com. 84453 in 8.8.4.4 '

don't confused, i'm using dnsruby gem well.. corresponding code in model:

def set_isp res = resolver.new a_record = res.query(self.domain_name) whois = whois::client.new rec = whois.lookup(a_record) self.isp = rec.name end

thanks lot in advance!

according error, issue passing result of

a_record = res.query(self.domain_name) 

straight to

whois.lookup 

but content of a_record not domain name. instead, it's full dns response:

;; answer received 192.168.178.1 (75 bytes)  ;; ;; security level : unchecked ;; ->>header<<- opcode: query, status: noerror, id: 51102 ... 

please make sure input valid domain name (or ip address).


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -