Giter VIP home page Giter VIP logo

sopel-dns's Introduction

sopel-dns

A DNS lookup plugin for Sopel IRC bots

Installing

Releases are hosted on PyPI, so after installing Sopel, all you need is pip:

$ pip install sopel-dns

Requirements

  • Python 3.8+
  • Sopel 8.0+
  • dnspython 2.x

Usage

Basic usage performs an 'A' record lookup:

<user> .dns domain.tld
<bot>  user: 10.10.0.1

To look up IPv6 addresses instead, specify the 'AAAA' record type:

<user> .dns domain.tld AAAA
<bot>  user: fd12:3456:789a:1::1

Other supported record types output their results in a similar fashion. Some types, such as MX and TXT, split the output across multiple lines to make it easier to read, at the cost of possible "spam" if there are many records attached to the queried domain.

Rate limiting

Normal users are rate-limited to one .dns command every 2 minutes, both to control channel flood and to prevent hammering whatever DNS server Sopel's host system uses to resolve the submitted queries.

Supported DNS record types

  • A
  • AAAA
  • CNAME
  • MX
  • NS
  • PTR
  • TXT

If a record type you want isn't listed here, feel free to request it in an issue. Even better: a pull request enabling that record type, including a demo of the resulting output.

sopel-dns's People

Contributors

dgw avatar

Watchers

 avatar  avatar  avatar

sopel-dns's Issues

Command should emit feedback on rate-limited calls

While a bespoke implementation could be done, it'll be easier to just hold off on this until Sopel 8.0 becomes stable. A message argument was added to the rate-limit decorators that makes this super easy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.