Project

robtex

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for the Robtex API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.16
~> 0.8
~> 10.0
~> 3.0
~> 4.0
~> 3.4

Runtime

~> 0.19
 Project Readme

Robtex-rb

Build Status Maintainability Coverage Status

Ruby client for the Robtex API

Installation

Add this line to your application's Gemfile:

gem 'robtex'

And then execute:

$ bundle

Or install it yourself as:

$ gem install robtex

Usage

As a Library

require 'robtex'

api = Robtex::API.new
puts api.ip("199.19.54.1")
# => {"status"=>"ok", ...}
puts api.as("1234")
# => {"status"=>"ok", ...}
puts api.rpdns("a.iana-servers.net")
# => [{"rrname"=>"icannalac.com", "rrdata"=>"a.iana-servers.net", "rrtype"=>"NS", "time_first"=>1440957502, "time_last"=>1526778684, "count"=>2}, ...]
puts api.fpdns("a.iana-servers.net")
# => [{"rrname"=>"a.iana-servers.net", "rrdata"=>"2001:500:8c::53", "rrtype"=>"AAAA", "time_first"=>1441242410, "time_last"=>1460542918, "count"=>18}, ...]

As a CLI

$ robtex
Commands:
  robtex as [QUERY]      # Query for AS by [QUERY]
  robtex fpdns [QUERY]   # Query for forward PDNS by [QUERY]
  robtex help [COMMAND]  # Describe available commands or one specific command
  robtex ip [QUERY]      # Query for IP by [QUERY]
  robtex rpdns [QUERY]   # Query for reverse PDNS by [QUERY]

License

The gem is available as open source under the terms of the MIT License.