With this plug-in, you can make Simple DNS Plus ignore all DNS requests for names that match a configurable regular expression.
This could be used, for example, when the server is being bombarded with requests with a specific pattern (as is often seen in DNS amplification attacks).
Another example is simple parental control - blocking domain names containing bad words.
Regular expressions are compiled when Simple DNS Plus loads the plug-in instance and are therefore evaluated very efficiently.
In the plug-in instance dialog / Plug-In Settings tab you can specify the regular expression to match:
The sample in the screen shot would match and ignore any requests for domain names containing 'xxx'.
Keep in mind that the dot (.) character has special meaning in regular expressions (matches any character), so when matching multi-segment domains names, the domain name dots must be enclosed in square brackets [.].
For example to match exactly "something.example.com", the regular expression would be "^something[.]example[.]com$" without the quotes.
The regular expression equivalent to the wildcard record name "*.example.com" is ".*[.]example[.]com$".
Where to get this plug-in
Download from: https://github.com/jhsoftware/sdns-regexignore/releases (v. 1.0 - 30. september 2015)
Download the .dll file to the "PlugIns" directory under the directory where Simple DNS Plus is installed, re-start Simple DNS Plus.
For details on setting up an instance of the plug-in click here.
This plug-in is released into the public domain as open source. You are most welcome to fork it or contribute code enhancements, and / or use the source code as a starting point for developing your own plug-in.
Source code / Git repository: https://github.com/jhsoftware/sdnspi-regexignore