Ticket #6 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

DNS and Reverse DNS Lookups

Reported by: tobias382 Owned by: tobias382
Priority: normal Component: plugins
Version: 1.5 Severity: normal
Keywords: Cc:

Description

When a user sends a message of the format 'dns %' where % is a domain name, the bot executes  gethostbyname() and sends a message back to the channel with its return value (the corresponding IP address or 'DNS lookup failed' if one could not be found).

When a user sends a message of the format 'revdns %' where % is an IP address, the bot executes  gethostbyaddr() and sends a message back to the channel with its return value (the corresponding host name or 'DNS lookup failed' if one could not be found).

Change History

Changed 5 years ago by Seldaek

  • status changed from new to closed
  • resolution set to fixed

(In [10]) fixes #6

Changed 5 years ago by Seldaek

'revdns %' can be called simply with 'dns %', if % is an IP address it will be detected and gethostbyaddr() is used in place of gethostbyname()

Note: See TracTickets for help on using tickets.