Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Whois#query (ArgumentError) "invalid address" #174

Closed
weppos opened this Issue · 0 comments

1 participant

Simone Carletti
Simone Carletti
Owner
/usr/local/lib/ruby/1.9.1/ipaddr.rb:496:in `rescue in initialize'
/usr/local/lib/ruby/1.9.1/ipaddr.rb:493:in `initialize'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois/server.rb:242:in `new'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois/server.rb:242:in `find_for_ip'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois/server.rb:208:in `guess'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois/client.rb:88:in `block in query'
/usr/local/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois/client.rb:87:in `query'
/var/www/shared/bundle/ruby/1.9.1/gems/whois-2.6.2/lib/whois.rb:41:in `query'

To reproduce the issue:

require 'whois'
Whois.query "f53"

Make sure your dns don't have a fallback dns configured. Otherwise you'll get the (correct) result.

Whois.query "f53"

Whois::AllocationUnknown: IP Allocation for `f53' unknown. Server definitions might be outdated.
    from /Users/weppos/.rvm/gems/ruby-1.9.2-p320/gems/whois-2.6.2/lib/whois/server.rb:249:in `find_for_ip'
    from /Users/weppos/.rvm/gems/ruby-1.9.2-p320/gems/whois-2.6.2/lib/whois/server.rb:208:in `guess'
    from /Users/weppos/.rvm/gems/ruby-1.9.2-p320/gems/whois-2.6.2/lib/whois/client.rb:88:in `block in query'
    from /Users/weppos/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
    from /Users/weppos/.rvm/gems/ruby-1.9.2-p320/gems/whois-2.6.2/lib/whois/client.rb:87:in `query'
    from /Users/weppos/.rvm/gems/ruby-1.9.2-p320/gems/whois-2.6.2/lib/whois.rb:41:in `query'
    from (irb):10
    from /Users/weppos/.rvm/rubies/ruby-1.9.2-p320/bin/irb:16:in `<main>'
Simone Carletti weppos was assigned
Simone Carletti weppos referenced this issue from a commit
Simone Carletti Whois::Server may occasionally raise an error trying to resolve an IP…
…v6 matching query object (GH-174).

Thanks @aeden
0e0339a
Simone Carletti weppos closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.