Skip to main content

A DNS lookup plugin for Sopel IRC bots

Project description

sopel-dns

A DNS lookup plugin for Sopel IRC bots

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 5 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.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.2.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sopel-dns-0.2.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for sopel-dns-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c41b433a34a118241489bfbfae6ef25ea1a1afa06c1f12791647d7be21521241
MD5 7888fa15fe1d60219f1c47cbfc41d1fc
BLAKE2b-256 49503c5e2219c25a589cc8d92495933b8f039de685ec98d58b28c14180deef32

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