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

Last revisionBoth sides next revision
reference:spamrules_statement_dns [2011/08/31 14:38] – created simonreference:spamrules_statement_dns [2011/08/31 14:44] – terminology: hostname simon
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 by 127.0.0.1