Duplex filters

JavaScript duplex filter - DNS

This duplex filter simply invokes its JavaScript code.

Parameters

  • Question types : (comma-separated list of strings) If specified, this filter will run for requests only if they contain at least one question with one of the specified types, for instance A,MX,PTR

  • Question names : (comma-separated list of strings) If specified, this filter will run for requests only if they contain at least one question with one of the specified name or regular expressions. Example: foo.com,regex:.*\.bar\.com

  • Answer types : (comma-separated list of strings) If specified, this filter will run for responses only if they contain at least one answer with one of the specified types, for instance A,MX,PTR

  • Answer names : (comma-separated list of strings) If specified, this filter will run for responses only if they contain at least one answer with one of the specified name or regular expression.

  • Client IPs : (comma-separated strings or regular expressions) If specified, this filter will run only for requests and responses for the specified client addresses. Example: 12.34.56.78,0:0:0:0:0:0:0:1,regex:26:06:47:00.*

Caching duplex filter - DNS

This duplex filter implements a simple caching mechanism, and invokes its JavaScript code (if any).

Parameters

None of the parameters are required. If none are specified, the logging will go to the standard log.

  • Question types : (comma-separated list of strings) If specified, this filter will only apply to requests that contain at least one question with one of the specified types, for instance A,MX,PTR

  • Question names : (comma-separated list of strings) If specified, this filter will only apply to requests that contain at least one question with one of the specified name.

  • Cache size : (integer) If specified, the maximum number of responses that should be cached. The default is 100.

Duplex logging filter - DNS

This duplex filter logs requests and responses to the specified output, which can either be the standard log, using a specific logger name, or a file.

Parameters

None of the parameters are required. If none are specified, the logging will go to the standard log.

  • File name : if empty, then the logging will go to the standard log. If specified, the file will be created if necessary, and appended to.

  • Use timestamp in file name : if selected, and a file name is provided, then a timestamp will be added to the file name.

  • Logger name : if specified, the logging will be done using the specified logger.

  • Format: If specified, the format of the log entries. Available variables are $ts for the timestamp, $clientIp for the IP address of the client, $thread for the thread ID, and $message for the text of the log entry.

  • Question types : (comma-separated list of strings) If specified, this filter will log requests only if they contain at least one question with one of the specified types, for instance A,MX,PTR

  • Question names : (comma-separated list of strings) If specified, this filter will log requests only if they contain at least one question with one of the specified name or regular expressions. Example: foo.com,regex:.*\.bar\.com

  • Answer types : (comma-separated list of strings) If specified, this filter will log responses only if they contain at least one answer with one of the specified types, for instance A,MX,PTR

  • Answer names : (comma-separated list of strings) If specified, this filter will log responses only if they contain at least one answer with one of the specified name or regular expression.

  • Client IPs : (comma-separated strings or regular expressions) If specified, this filter will log only requests and responses for the specified client addresses. Example: 12.34.56.78,0:0:0:0:0:0:0:1,regex:26:06:47:00.*