Project

dnsdb

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

Development

~> 2.1
~> 0.8
~> 13.0
~> 3.9
~> 5.1
~> 3.8
 Project Readme

dnsdb

Build Status Coverage Status CodeFactor

DNSDB API wrapper for Ruby.

Installation

Add this line to your application's Gemfile:

gem 'dsndb'

And then execute:

bundle install

Or install it yourself as:

gem install dsndb

Usage

# when given nothing, it tries to load your API key via ENV["DNSDB_API_KEY"]
api = DNSDB::API.new
# or you can set it manually
api = DNSDB::API.new("YOUR_API_KEY")

api.lookup.rdata(value: "10.0.0.1", type: "ip")
api.lookup.rdata(value: "github.com", type: "name")

api.lookup.rrset(owner_name: "www.farsightsecurity.com")
api.lookup.rrset(owner_name: "*.farsightsecurity.com", rrtype: "ns", bailiwick: "farsightsecurity.com")
api.lookup.rrset(owner_name: "*.farsightsecurity.com", rrtype: "ns", bailiwick: "farsightsecurity.com", limit: 100, time_last_after: 1_468_281_600)

api.summarize.rdata(rrtype: "ANY", value: "10.0.0.1", type: "ip")
api.summarize.rdata(value: "github.com", type: "name")

api.summarize.rrset(owner_name: "www.farsightsecurity.com")
api.summarize.rrset(owner_name: "*.farsightsecurity.com", rrtype: "ns", bailiwick: "farsightsecurity.com")

License

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