Questions tagged [whois-ruby]

An intelligent — pure Ruby — WHOIS client and parser.

Ruby Whois is an intelligent — pure Ruby — WHOIS client and parser.

It provides a flexible and programmable API to query WHOIS servers and look up IP, TLD, and domain WHOIS information. It also offers command-line interface to run WHOIS queries from the console.

20 questions
5
votes
3 answers

ECONNRESET (Whois::ConnectionError) - Error Trying to Query Whois in Ruby

I'm writing a simple program in Ruby to check if a list of domains is taken. Basically it cycles through a list, and uses the following function to check. require 'rubygems' require 'whois' def check_domain(domain) c = Whois::Client.new …
raven001
  • 97
  • 1
  • 5
2
votes
1 answer

Parsing Whois Text Data using RubyWhois

How do I parse pre-acquired whois text data using RubyWhois. That is to say assuming that I already have the whois info of 'stackoverflow.com' as a string. How do I parse the same using RubyWhois library? Any help is appreciated.
GeekTantra
  • 11,580
  • 6
  • 41
  • 55
2
votes
2 answers

Using ruby whois

I need to retrieve whois informations for a given site. because the whois content varies with each whois server, i need to parse the whois content what i'm getting. I'm using php to show the content from db and initially tried in php to parse it.…
vkGunasekaran
  • 6,668
  • 7
  • 50
  • 59
2
votes
3 answers

How do I json encode all the info available in the parser object?

I am very new to ruby and rails. I am trying to output all the parsed whois info to json output. I have the following: class WhoisController < ApplicationController def index c = Whois::Client.new record = c.lookup("google.com") parser…
user_78361084
  • 3,538
  • 22
  • 85
  • 147
2
votes
1 answer

Which whois servers does this library use and are they rate limited?

I can't seem to locate which whois servers this library uses, where in the code does it have the URL of the server(s) it connects too? I'm not sure I understand how whois actually works, but I am assuming it connects to popular registrars API's…
cool breeze
  • 4,461
  • 5
  • 38
  • 67
2
votes
1 answer

Ruby Whois Queries Timeout

I am using the Ruby Whois gem at http://ruby-whois.org to automate retrieval of Whois records for various websites. At the moment, I am performing a few thousand queries per day. I am noticing that many of the queries I make result in Timeout errors…
tonyduan
  • 75
  • 1
  • 3
2
votes
3 answers

whois doesn't work in irb

I install whois using $ gem install whois and follow Ruby Whois but when I test it in irb, it gives error: 1.9.3p194 :001 > c = Whois::Client.new NameError: uninitialized constant Whois from (irb):1 from…
Darshana
  • 2,462
  • 6
  • 28
  • 54
1
vote
1 answer

how to parse previously fetch whois data with Ruby Whois?

According to README on github, Ruby Whois can be used "as a standalone library to parse WHOIS records fetched previously and/or from different WHOIS clients." I know how to use the library to directly perform whois query and parse the returning…
Shanshan
  • 11
  • 1
1
vote
1 answer

Setting address of whois service for ruby whois gem for IP addresses

A Connection to whois.arin.net is not open to us. Our network administrators say we should use 192.0.47.59 for our whois service. In some cases I will have a DNS name, in other cases I will have an IP address. I want to get the whois information in…
Marlin Pierce
  • 9,931
  • 4
  • 30
  • 52
1
vote
1 answer

Setting address of whois service for ruby whois gem

Using the ruby whois gem, how do I set the server address of the whois service? Setting the bind_host, I get an error. > whois_client = Whois::Client.new(bind_host: "192.0.47.59", bind_port: 43) => #
Marlin Pierce
  • 9,931
  • 4
  • 30
  • 52
1
vote
2 answers

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

I'm totally lost here. I was trying to set up the whois gem according to the documentation at https://whoisrb.org/. Unfortunately I'm always getting an error when trying to perform a whois, locally on my machine. Error message: Unable to find a…
CottonEyeJoe
  • 720
  • 1
  • 7
  • 28
1
vote
2 answers

Contact info empty/not parsed for domains from some registrars

I'm starting to use whoisrb and I'm noticing domains from some registrars return nil contact information. For example: domain_name = ARGV[0] r = Whois.whois(domain_name) t=r.registrant_contact if t == nil puts 'Registrant Contact is…
Dave A.
  • 13
  • 3
1
vote
1 answer

how to add properties to existing parser ruby whois

So i'm here again about the ruby whois gem on which i'm bound to be working on for some time. I have been fiddling around with it and noticed some of the news gTLDs weren't implemented or not completely. Hence, i would like to understand the depths…
Exos
  • 75
  • 6
1
vote
1 answer

Whois Parser error for ORG/NET URLs

I have checking the whois information for .org/.net/.ae sites. While parsing it was giving error. This is my code part: record = Whois.whois(url) date = record.created_on Its giving the following error Whois::ParserError: Unexpected token: Access…
SaravanaKumAr
  • 427
  • 6
  • 19
0
votes
1 answer

Unable to find a match for 'manpôwer.com' although domain information is available

I am encountering an issue while using the whois gem, as it fails to locate any records for the domain name 'manpôwer.com'. No match for "MANPôWER.COM". >>> Last update of whois database: 2023-03-22T14:56:58Z <<< My understanding is that the gem…
1
2