Skip to content

ARIN requires a special query format #10

Closed
weppos opened this Issue Feb 3, 2010 · 4 comments

2 participants

@weppos
Owner
weppos commented Feb 3, 2010

Migrated from http://code.simonecarletti.com/issues/279

ARIN returns only a stripped version of the whois entry if no additional parameter (+) is given.

Modified search_whois:

/var/lib/gems/1.8/gems/whois-0.4.2/lib/whois.rb

def search_whois
s = TCPsocket.open(@server.server, 43)
if @server.class.name.eql?("Whois::Server::Arin")
s.write("+#{self.ip.to_s}\n")
else
s.write("#{self.ip.to_s}\n")
end
ret = ''
while s.gets do ret += $_ end
s.close
@all = ret
end
@linrock
linrock commented Feb 8, 2013

This fix could be put in Whois::Server::Adapters::Arin

@weppos
Owner
weppos commented Feb 8, 2013

Yes, I believe it could be a good candidate for GH-204.

I will be travelling most of this and the next week, I won't be able to review the PR before the end of the next week.

@linrock
linrock commented Feb 8, 2013

Sure thing. No rush!

@weppos
Owner
weppos commented Apr 3, 2013

It should be fixed by GH-204

@weppos weppos closed this Apr 3, 2013
@weppos weppos was assigned Apr 3, 2013
@linrock linrock added a commit to linrock/whois that referenced this issue Apr 4, 2013
@linrock linrock Send additional parameters for ARIN queries (fixes #10). 367c072
@linrock linrock added a commit to linrock/whois that referenced this issue Apr 4, 2013
@linrock linrock Send additional parameters for ARIN queries (fixes #10). 1f335a4
@linrock linrock added a commit to linrock/whois that referenced this issue Apr 4, 2013
@linrock linrock Send additional parameters for ARIN queries (fixes #10). 1cad6b1
@linrock linrock added a commit to linrock/whois that referenced this issue Apr 4, 2013
@linrock linrock Send additional parameters for ARIN queries (fixes #10). d61370a
@weppos weppos added a commit that referenced this issue Apr 4, 2013
@weppos CHANGELOG for GH-220, GH-10 81b7d25
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.