Project

lita-dig

0.01
No commit activity in last 3 years
No release in over 3 years
A DNS record lookup plugin for Lita
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.2
 Project Readme

lita-dig

Build Status MIT License RubyGems Code Climate Gemnasium

A DNS record lookup plugin for Lita.

Installation

Add lita-dig to your Lita instance's Gemfile:

gem "lita-dig"

Configuration

Configuring the default resolver is optional. If nothing specifed, 8.8.8.8 is used.

config.handlers.dig.default_resolver = '127.0.0.1'

Usage

Examples:

dig example.com [+short]          - Lookup the A record for example.com using the default resolver (optionally just IP addressses)
dig example.com MX                - Lookup the MX record for example.com using the default resolver
dig @8.8.8.8 example.com [+short] - Lookup the A record for example.com using 8.8.8.8 as a resolver (optionally just IP addressses)
dig @8.8.8.8 example.com NS       - Lookup the NS record for example.com using 8.8.8.8 as a resolver

The majority of DNS record types (including "any") are supported.

License

MIT