Skip to content
/ radb Public

🔬 Tools to Query the 'Merit' 'RADb' Network Route Server

Notifications You must be signed in to change notification settings

hrbrmstr/radb

Repository files navigation

radb : Tools to Query the 'Merit' 'RADb' Network Route Server

The RADB whois server provides information collected from all the registries that form part of the Internet Routing Registry. These collected registries provide information on most of the networks and ASs routed in the Internet today.

The following functions are implemented:

  • radb_close: Close the connection to the Merit RADb server
  • radb_match: Match an object of the specified type with the specified key
  • radb_open: Open a persistent connection to the Merit RADb server
  • radb_routes_by_origin: Get routes by origin
  • radb_route_search: Perform route searches.
  • radb_route_set: Get as-set or route-set
  • radb_version: Get RADb version

Installation

devtools::install_github("hrbrmstr/radb")

Usage

library(radb)

# current verison
packageVersion("radb")
## [1] '0.1.0'
radb_open() %>% 
  radb_routes_by_origin("5650") %>% 
  radb_route_set("as-google") %>% 
  radb_route_set("as-google", TRUE) %>% 
  radb_route_set("AS-MEEBO") %>% 
  radb_match("mntner", "maint-as237") %>% 
  radb_route_search("108.0.0.0/16", "l") %>% 
  radb_route_search("198.93.34.0/24", "l") %>% 
  radb_close() -> rdb

print(rdb)
## $version
## [1] "# IRRd -- version 3.0.8 [25Apr2014] "
## 
## $rbo
## $rbo$as5650
##   [1] "70.40.8.55/32"     "74.36.212.0/22"    "74.39.241.0/24"    "74.40.190.0/24"    "74.38.112.0/22"   
##   [6] "74.38.116.0/23"    "208.84.108.0/22"   "74.32.0.0/12"      "76.10.56.0/23"     "76.10.36.0/24"    
##  [11] "76.10.58.0/23"     "76.10.37.0/24"     "12.126.206.160/30" "12.146.21.16/28"   "12.183.182.0/24"  
##  [16] "63.163.77.0/24"    "173.84.0.0/14"     "199.73.86.0/24"    "169.198.202.0/23"  "184.8.0.0/13"     
##  [21] "70.100.0.0/15"     "66.133.128.0/18"   "65.37.0.0/17"      "170.215.0.0/16"    "216.67.192.0/19"  
##  [26] "65.73.0.0/16"      "74.44.208.0/21"    "173.86.254.0/23"   "173.86.198.0/23"   "74.39.194.0/23"   
##  [31] "65.73.118.0/24"    "70.101.252.0/23"   "74.45.32.0/19"     "70.101.128.0/21"   "170.215.217.0/24" 
##  [36] "74.45.245.0/24"    "74.39.33.0/24"     "74.45.243.0/24"    "173.87.176.0/20"   "74.45.1.0/24"     
##  [41] "74.45.228.0/23"    "74.45.6.0/23"      "74.40.66.0/24"     "65.73.197.0/24"    "198.136.229.0/24" 
##  [46] "65.73.145.0/24"    "70.100.56.0/21"    "70.101.0.0/18"     "70.101.140.0/23"   "74.45.244.0/24"   
##  [51] "74.39.240.0/24"    "198.245.214.0/24"  "74.42.128.0/20"    "74.37.184.0/22"    "65.73.247.0/24"   
##  [56] "170.215.75.0/24"   "74.46.252.0/22"    "70.101.142.0/23"   "70.100.15.0/24"    "173.86.76.0/22"   
##  [61] "70.101.254.0/23"   "65.73.117.0/24"    "170.215.219.0/24"  "66.44.224.0/20"    "74.39.188.0/24"   
##  [66] "170.215.220.0/24"  "170.215.218.0/24"  "170.215.71.0/24"   "70.101.236.0/24"   "170.215.216.0/24" 
##  [71] "74.41.218.0/24"    "70.100.200.0/21"   "170.215.94.0/24"   "74.45.231.0/24"    "199.104.207.0/24" 
##  [76] "74.45.224.0/22"    "74.45.220.0/23"    "173.86.225.0/24"   "70.100.192.0/21"   "65.73.124.0/23"   
##  [81] "74.36.136.0/21"    "74.45.140.0/23"    "74.39.44.0/22"     "74.36.112.0/20"    "192.7.244.0/24"   
##  [86] "96.44.16.0/22"     "50.32.0.0/12"      "50.48.0.0/13"      "184.16.0.0/14"     "50.102.0.0/15"    
##  [91] "50.104.0.0/13"     "206.207.16.0/24"   "50.120.0.0/13"     "199.189.40.0/22"   "192.182.0.0/15"   
##  [96] "69.54.106.0/24"    "69.54.107.0/24"    "141.123.17.0/24"   "141.123.48.0/21"   "141.123.200.0/24" 
## [101] "141.123.210.0/24"  "141.123.211.0/24"  "141.123.212.0/24"  "216.227.37.0/24"   "162.210.12.0/22"  
## [106] "192.236.104.0/21"  "170.173.8.0/24"    "170.173.10.0/24"   "204.9.193.0/24"    "198.183.217.0/24" 
## [111] "198.183.218.0/24"  "104.169.0.0/16"    "216.227.34.0/24"   "216.227.121.0/24"  "66.243.220.0/24"  
## [116] "104.235.0.0/16"    "104.240.0.0/16"    "192.101.80.0/24"   "192.81.86.0/23"    "107.191.128.0/19" 
## [121] "45.52.0.0/15"      "104.226.0.0/16"    "216.227.35.0/24"   "216.227.38.0/24"   "172.76.0.0/14"    
## [126] "104.241.15.0/24"   "104.241.16.0/22"   "204.68.241.0/24"   "199.87.1.0/24"     "199.5.201.0/24"   
## [131] "192.245.181.0/24"  "71.181.52.0/24"    "172.102.64.0/18"   "172.102.32.0/19"   "172.99.32.0/19"   
## [136] "192.92.92.0/24"    "199.19.43.0/24"    "172.95.0.0/16"     "172.108.0.0/16"    "172.109.0.0/16"   
## [141] "47.136.0.0/13"     "47.144.0.0/12"     "47.160.0.0/12"     "47.176.0.0/14"     "47.180.0.0/15"    
## [146] "47.182.0.0/15"     "47.184.0.0/14"     "47.188.0.0/15"     "47.190.0.0/16"     "47.191.0.0/16"    
## [151] "47.192.0.0/12"     "100.13.0.0/16"     "100.3.0.0/16"      "100.32.0.0/16"     "100.39.0.0/16"    
## [156] "100.9.0.0/16"      "108.0.0.0/16"      "108.10.224.0/19"   "108.13.0.0/16"     "108.19.0.0/16"    
## [161] "108.22.128.0/19"   "108.23.0.0/16"     "108.33.0.0/16"     "108.38.0.0/16"     "108.40.128.0/17"  
## [166] "108.43.128.0/17"   "108.47.0.0/16"     "108.9.0.0/16"      "173.51.0.0/16"     "173.55.0.0/16"    
## [171] "173.57.0.0/16"     "173.58.0.0/16"     "173.60.0.0/16"     "173.64.192.0/18"   "173.65.0.0/16"    
## [176] "173.67.96.0/19"    "173.71.0.0/18"     "173.74.0.0/16"     "173.78.0.0/16"     "68.135.0.0/16"    
## [181] "68.237.168.0/21"   "68.238.144.0/20"   "68.238.168.0/21"   "70.104.0.0/20"     "70.104.144.0/20"  
## [186] "70.104.16.0/20"    "70.109.32.0/20"    "70.110.64.0/20"    "71.100.0.0/15"     "71.102.0.0/18"    
## [191] "71.102.128.0/17"   "71.102.64.0/19"    "71.103.0.0/16"     "71.104.0.0/14"     "71.104.0.0/15"    
## [196] "71.106.0.0/15"     "71.108.0.0/15"     "71.110.0.0/16"     "71.111.192.0/18"   "71.116.128.0/17"  
## [201] "71.117.64.0/18"    "71.118.0.0/15"     "71.121.32.0/19"    "71.122.0.0/16"     "71.123.128.0/17"  
## [206] "71.160.0.0/16"     "71.164.128.0/17"   "71.165.0.0/16"     "71.170.0.0/16"     "71.177.0.0/16"    
## [211] "71.180.0.0/16"     "71.189.0.0/16"     "71.240.160.0/19"   "71.243.208.0/20"   "71.243.224.0/19"  
## [216] "71.244.0.0/18"     "71.246.32.0/19"    "71.251.64.0/18"    "71.252.128.0/17"   "71.254.128.0/18"  
## [221] "71.96.0.0/16"      "71.97.0.0/17"      "71.97.224.0/20"    "71.98.128.0/17"    "71.99.0.0/16"     
## [226] "72.64.128.0/17"    "72.64.64.0/18"     "72.67.0.0/16"      "72.71.0.0/18"      "72.77.128.0/17"   
## [231] "72.87.128.0/17"    "72.91.0.0/16"      "74.100.0.0/16"     "74.106.208.0/20"   "74.106.32.0/19"   
## [236] "74.111.192.0/19"   "74.111.224.0/19"   "96.226.0.0/16"     "96.228.128.0/17"   "96.228.64.0/20"   
## [241] "96.229.0.0/16"     "96.235.96.0/20"    "96.240.32.0/19"    "96.243.128.0/17"   "96.247.0.0/17"    
## [246] "96.247.224.0/20"   "96.248.224.0/19"   "96.249.160.0/20"   "96.249.192.0/20"   "96.251.0.0/16"    
## [251] "96.252.128.0/17"   "96.254.0.0/16"     "98.108.192.0/18"   "98.112.0.0/16"     "98.119.0.0/16"    
## [256] "108.1.192.0/19"    "108.12.64.0/18"    "108.32.128.0/17"   "108.37.0.0/16"     "108.42.0.0/16"    
## [261] "108.42.84.0/22"    "108.42.88.0/22"    "173.59.160.0/19"   "173.67.120.0/21"   "173.67.80.0/20"   
## [266] "173.67.88.0/21"    "173.67.96.0/22"    "173.75.64.0/18"    "173.75.80.0/22"    "70.110.80.0/20"   
## [271] "71.113.208.0/20"   "71.113.224.0/19"   "71.114.192.0/19"   "71.114.224.0/19"   "71.115.96.0/19"   
## [276] "71.116.0.0/20"     "71.116.64.0/18"    "71.121.0.0/19"     "71.121.96.0/19"    "71.123.0.0/20"    
## [281] "71.126.192.0/20"   "71.169.192.0/18"   "96.236.64.0/20"    "96.238.192.0/19"   "96.249.176.0/20"  
## [286] "96.249.200.0/21"   "192.189.21.0/24"   "96.44.0.0/24"      "71.97.192.0/19"    "158.222.24.0/22"  
## [291] "23.191.0.0/24"     "198.93.34.0/24"    "207.173.0.0/16"   
## 
## 
## $as_set
## $as_set$`as-google`
##  [1] "AS11344"  "AS13949"  "AS15169"  "AS15276"  "AS19425"  "AS19527"  "AS22577"  "AS24424"  "AS26684"  "AS26910" 
## [11] "AS36039"  "AS36040"  "AS36384"  "AS36385"  "AS36492"  "AS36561"  "AS394725" "AS395973" "AS40873"  "AS41264" 
## [21] "AS43515"  "AS45566"  "AS55023"  "AS6432"  
## 
## $as_set$`as-meebo`
## [1] "AS19527" "AS26684"
## 
## 
## $match_res
## # A tibble: 10 × 4
##        key                              value query_key   query_val
## *    <chr>                              <chr>     <chr>       <chr>
## 1   mntner                        MAINT-AS237    mntner maint-as237
## 2    descr                Merit Network, Inc.    mntner maint-as237
## 3  admin-c                         MICHN-ARIN    mntner maint-as237
## 4   tech-c                         MICHN-ARIN    mntner maint-as237
## 5   upd-to           routing-notify@merit.edu    mntner maint-as237
## 6  mnt-nfy           routing-notify@merit.edu    mntner maint-as237
## 7     auth             CRYPT-PW HIDDENCRYPTPW    mntner maint-as237
## 8   mnt-by                        MAINT-AS237    mntner maint-as237
## 9  changed ljb@merit.edu 20150427  #13:51:01Z    mntner maint-as237
## 10  source                               RADB    mntner maint-as237
## 
## $search_res
## # A tibble: 26 × 4
##        key                                      value         cidr option
## *    <chr>                                      <chr>        <chr>  <chr>
## 1    route                               108.0.0.0/16 108.0.0.0/16      l
## 2    descr Frontier Communications (ARIN OrgID: FRTR) 108.0.0.0/16      l
## 3   origin                                     AS5650 108.0.0.0/16      l
## 4  remarks                                            108.0.0.0/16      l
## 5  remarks                 -- Operational Contacts -- 108.0.0.0/16      l
## 6  remarks         Abuse / UCE: abuse@frontiernet.net 108.0.0.0/16      l
## 7  remarks       NOC / Maint: support@frontiernet.net 108.0.0.0/16      l
## 8  remarks           BGP Routing: bgp@frontiernet.net 108.0.0.0/16      l
## 9  remarks                                            108.0.0.0/16      l
## 10 remarks                                            108.0.0.0/16      l
## # ... with 16 more rows
## 
## attr(,"class")
## [1] "radb"

About

🔬 Tools to Query the 'Merit' 'RADb' Network Route Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages