Regular Expressions Plug-In |
Simple DNS Plus v. 5.1 Copyright © 1999-2008 JH Software ApS |
This plug-in uses Regular Expressions (see standard syntax in Wikipedia) to pair host domain names to IP addresses.
This gives you much more flexibility than standard DNS wildcard records (*.example.com).
For example, you can match any part of a domain name, and use complex matching expressions.
NOTE: DNS data from plug-ins does not override existing local DNS zone data - but does take effect if the requested name does not exist in a local zone.
To setup a new Regular Expression plug-in instance; open the Options dialog / Plug-ins section, select the "Regular Expressions" component and click the "Create new instance..." button. This opens the Plug-In Instance dialog for the new Regular Expressions plug-in instance.
On the Plug-In Settings tab, you can add, edit, remove, and arrange regular expression / IP address pairs.
When you click the "Add" or "Edit" buttons, you can specify the following in the "Match host name" dialog:
| • | If requested domain name matches this regular expression Enter the regular expression here. For example: "euro" will match any domain name containing "euro" - like "accepteuros.com" "^asia" will match any domain name starting with "asia" - like "asialiving.com". "om$" will match any domain name ending with "om" - like "simpledns.com" and "example.zoom" |
| • | Respond with host record pointing to IP address Enter the IP address here. For example "1.2.3.4". |
| • | Host record TTL Specify the TTL value for the generated host record here. |
Regular expressions are compiled when the server modules loads them and therefore run very efficiently in Simple DNS Plus.