Skip to main content

A DNS lookup plugin for Sopel IRC bots

Project description

sopel-dns

A DNS lookup plugin for Sopel IRC bots

Requirements

  • Sopel 7.1+
  • dnspython 2.x
  • Python 3.6+

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.

Version 0.4.0

Now requires Sopel 7.1, but also works on (upcoming) Sopel 8.0.

Version 0.3.1

Tightened dnspython requirement vs. Sopel's own. This plugin now requires Python 3.6+ (because that's what dnspython 2.x supports).

Version 0.3.0

Added [dns] output prefix. This also meant changing most of the plugin's output from replies to normal "say", which is fine. The flood of HLs from looking up stuff like MX or TXT records could get annoying.

Rate limit has been reduced from 5 minutes to 2 minutes.

Version 0.2.1

Fixed error when a DNS query has no answer (no results).

Version 0.2.0

Added support for choosing DNS record type to look up. Currently understands A, AAAA, CNAME, MX, NS, PTR (for IP addresses only), and TXT.

Version 0.1.0

Initial release with support for querying a domain's A records.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel-dns-0.4.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

sopel_dns-0.4.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sopel-dns-0.4.0.tar.gz.

File metadata

  • Download URL: sopel-dns-0.4.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for sopel-dns-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b48b3f17ee15ed627efbc647d3519c4acdea2e859f9a41eb9dbf9b43f1be310e
MD5 8be74c58885391e84b5b786c2fb8e312
BLAKE2b-256 306fdbb98a6579ea471275063f5cf119bc5bffe37933eb6bf24375f4a34d936f

See more details on using hashes here.

File details

Details for the file sopel_dns-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_dns-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for sopel_dns-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a053946fd55d20e839b710121a5432e76f8a3ebb8b0823f37a48e283067fb106
MD5 162a6e8d4c3c0e00063c91fd0ce893cd
BLAKE2b-256 42cc3ead221c6d68ee4cb0820550cf7f09ec88c75cdf4bd8921105def8766e30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page