DNS module


This module provides asynchronous dns support. This will avoid long periods where the bot hangs, waiting for a hostname to resolve, which often let it timeout on all other connections.

  1. Config file settings
  2. Tcl commands

1. Config file settings

Lines in bold are the lines that need to be included in the eggdrop config file if you want to use the share module.
Lines in bold italics are optional and only required if you wish to change the default behaviour for that particular feature.

Put this line into your config file to load dns module:

loadmodule dns


2. Tcl commands:

dnslookup <ip-address/hostname> <proc> [[arg1] [arg2] ... [argn]]

Issues an asynchronous dns lookup request. The command will block if dns module is not loaded, otherwise it will either return immediately or immediately call the proc (e.g. if the lookup is already cached).

As soon as the request completes, <proc> will be called as follows:

<proc> ipaddress hostname status [[arg1] [arg2] ... [argn]]

status is 1 if the lookup was successful and 0 if it wasn't. All additional parameters (called arg1, arg2 and argn above) get appended to the proc's other parameters.


© 1997 Robey Pointer
© 1999,2000 Eggheads