cymruservices (version 0.5.0)

bulk_peer: Retrieves BGP Peer ASN info for a list of IPv4 addresses

Description

Retrieves BGP Peer ASN info for a list of IPv4 addresses

Usage

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.

See Also

http://www.team-cymru.org/IP-ASN-mapping.html

Examples

Run this code
# NOT RUN {
bulk_peer(c("68.22.187.5", "207.229.165.18", "198.6.1.65"))
# }

Run the code above in your browser using DataCamp Workspace