User Tools

Site Tools


reference:spamrules_statement_dns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reference:spamrules_statement_dns [2011/08/31 13:38]
simon created
reference:spamrules_statement_dns [2018/11/14 10:45] (current)
Line 4: Line 4:
 ^Purpose ​ |Allows the script to perform an arbitrary DNS lookup, returning the result into a specified variable | ^Purpose ​ |Allows the script to perform an arbitrary DNS lookup, returning the result into a specified variable |
  
-The **DNS** statement requires a type, domain name and variable name, in the format +The **DNS** statement requires a type, hostname ​and variable name, in the format 
-  DNS <​type>​ <domain name> <​variable name>+  DNS <​type>​ <hostname> <​variable name>
  
    
 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>":"<​type>":"<​result>​+  <hostname>":"<​type>":"<​result>​
  
 Each result will be separated from the next by a linefeed character ("​\n"​) Each result will be separated from the next by a linefeed character ("​\n"​)
Line 17: Line 17:
  
 =====Examples===== =====Examples=====
-The following example will look up the MX records for the domain ​specified in the ${Domain} variable, and put the result into the ${dnsresult} variable+The following example will look up the MX records for the hostname ​specified in the ${Domain} variable, and put the result into the ${dnsresult} variable
 <​code>​ <​code>​
 DNS MX ${Domain} dnsresult DNS MX ${Domain} dnsresult
reference/spamrules_statement_dns.txt · Last modified: 2018/11/14 10:45 (external edit)