uses proper whois server names

This commit is contained in:
Mateusz Zawisza 2012-08-25 22:32:14 +02:00 committed by Johannes Dewender
parent 50cf589d75
commit 8208d88e21

View File

@ -1,11 +1,11 @@
module Peertracker module Peertracker
class WhoisRequest class WhoisRequest
def get_as_info(ip_address) def get_as_info(ip_address)
`whois -m #{ip_address}` `whois -h whois.radb.net #{ip_address}`
end end
def get_country_info(ip_address) def get_country_info(ip_address)
`whois -l #{ip_address}` `whois -h whois.lacnic.net #{ip_address}`
end end
end end
end end