Retrieves BGP Origin ASN info for a list of IPv4 addresses

bulk_origin(ips, timeout = getOption("timeout"))

Arguments

ips

vector of IPv4 address (character - dotted-decimal)

timeout

numeric: the timeout (in seconds) to be used for this connection. Beware that some OSes may treat very large values as zero: however the POSIX standard requires values up to 31 days to be supported.

Value

data frame of BGP Origin ASN lookup results

  • as - AS #

  • ip - IPv4 (passed in)

  • bgp_refix - BGP CIDR

  • cc - Country code

  • registry - Registry it falls under

  • allocated - date it was allocated

  • as_ame - AS name

If a socket connection cannot be made (i.e. a network problem on your end or a service/network problem on their end), all columns will be NA.

Note

The Team Cymru's service is NOT a GeoIP service! Do not use this function for that as your results will not be accurate. Data is updated every 4 hours. Also, A direct connection to TCP Port 43 (WHOIS) is required for most of these API functions to work properly.

See also

Examples

# NOT RUN {
bulk_origin(c("68.22.187.5", "207.229.165.18", "198.6.1.65"))
# }