This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reference:spamrules_statement_dns [2011/08/31 13:38] – created simon | reference:spamrules_statement_dns [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^Purpose | ^Purpose | ||
| - | The **DNS** statement requires a type, domain name and variable name, in the format | + | The **DNS** statement requires a type, hostname |
| - | DNS < | + | DNS < |
| The result variable will contain a list of the results found (more than one result may be found for any particular DNS query), in the form: | The result variable will contain a list of the results found (more than one result may be found for any particular DNS query), in the form: | ||
| - | <domain name>":"< | + | <hostname>":"< |
| Each result will be separated from the next by a linefeed character (" | Each result will be separated from the next by a linefeed character (" | ||
| Line 17: | Line 17: | ||
| =====Examples===== | =====Examples===== | ||
| - | The following example will look up the MX records for the domain | + | The following example will look up the MX records for the hostname |
| < | < | ||
| DNS MX ${Domain} dnsresult | DNS MX ${Domain} dnsresult | ||