Retrieves BGP Peer ASN info for a list of IPv4 addresses

bulk_peer(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 Peer ASN lookup results

  • peer_as - peer AS #

  • ip - IPv4 (passsed in)

  • bgp_prefix - BGP CIDR block

  • cc - Country code

  • registry - Registry it falls under

  • allocated - date allocated

  • peer_as_name - peer 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_peer(c("68.22.187.5", "207.229.165.18", "198.6.1.65"))
# }