No commit activity in last 3 years
No release in over 3 years
A lita handler for performing forward and reverse DNS lookups
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.3
 Project Readme

lita-lookup-host

Build Status Coverage Status

A handler for lita that gives folks in chat an easy way to perform both forward and reverse lookups for hosts via DNS.

This module was inspired by the lita-dig handler, but aims to serve an audience that might not want to learn dig.

Installation

Add lita-lookup-host to your Lita instance's Gemfile:

gem "lita-lookup-host"

Usage

Perform a forward lookup:

[You] lita: lookup host www.google.com
[Lita] 216.58.216.68

Perform a reverse lookup:

[You] lita: lookup host 127.0.0.1
[Lita] localhost

This handler uses Ruby's resolv class included in stdlib to perform lookups. It uses whatever resolvers have been configured on the system running Lita to answer queries.