lib/whois/server/adapters/arin.rb
# Executes a WHOIS query to the Arin WHOIS interface,
# resolving any intermediate referral,
# and appends the response to the client buffer.
#
# @param  [String] string
# @return [void]
#
Executes a WHOIS query to the Arin WHOIS interface,
resolving any intermediate referral,
and appends the response to the client buffer.
Executes a WHOIS query to the Arin WHOIS interface resolving any intermediate referral and appends the response to the client buffer .
def extract_referral(response)
          return unless response =~ /ReferralServer:\s*r?whois:\/\/([\w.-]+)(?::(\d+))?/
          {
            host: $1,
            port: $2 ? $2.to_i : nil
          }
        end
def extract_referral ( response ) return unless response =~ / ReferralServer: \s *r?whois: \/ \/ ([ \w .-]+)(?::( \d +))? / { host : $1 , port : $2 ? $2 . to_i : nil } end
Executes a WHOIS query to the Arin WHOIS interface,
resolving any intermediate referral,
and appends the response to the client buffer.
Executes a WHOIS query to the Arin WHOIS interface resolving any intermediate referral and appends the response to the client buffer .
None
void
response
<not_specific>
<not_specific>
None