Skip to content

Instantly share code, notes, and snippets.

@MattIPv4
Last active February 28, 2024 03:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattIPv4/96f4b59989486671affd1c65f1781d0d to your computer and use it in GitHub Desktop.
Save MattIPv4/96f4b59989486671affd1c65f1781d0d to your computer and use it in GitHub Desktop.

DNS over Discord

Ever wanted to make DNS requests from the comfort of your Discord server? Well now you can, thanks to the @1.1.1.1 bot.

To start using the DNS over Discord bot, invite it to your Discord server using this link: https://bit.ly/DNS-over-Discord

The bot only requires basic permissions to read messages in your server and send messages to reply to the DNS queries.

Once the bot is in your server, you can mention it (@1.1.1.1) followed by a domain name to begin making DNS requests. Provide DNS record types after the domain name to get back results for each record type. You can also use an asterisk ("*") in place of a record type to get back DNS results for all supported types.

If you ever need help with the usage of the DNS over Discord bot, simply mention it (@1.1.1.1) with no other keywords and it will return a help message with example usage for all supported features of the bot.

Examples

@1.1.1.1 cloudflare.com
@1.1.1.1 cloudflare.com

@1.1.1.1 cloudflare.com A AAAA
@1.1.1.1 cloudflare.com A AAAA

Supported record types

  • A
  • NS
  • CNAME
  • MX
  • TXT
  • AAAA
  • SRV
  • CAA

Use "*" (asterisk) in place of a record type to get DNS results for all supported types.

WHOIS support

The DNS over Discord also provides additional commands for performing whois lookups for both domain names and IP addresses. To use this functionality, mention the bot (@1.1.1.1) followed by the keyword “whois” and then the domain name or IP address.

For IP addresses, if the bot can get back a valid whois response and correctly parse it, it will return formatted information including the NetName and ASN for the IP address, as well as the CIDR block it is part of, the approximate location of the IP and the abuse contact for the IP range if available.

@1.1.1.1 whois 104.17.175.85
@1.1.1.1 whois 104.17.175.85

For domain names, assuming the bot can fetch a valid whois response, it will return the full, raw whois response for the requested domain name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment