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
Add lita-lookup-host to your Lita instance's Gemfile:
Perform a forward lookup:
[You] lita: lookup host www.google.com [Lita] 220.127.116.11
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.