User Tools

Site Tools


Spam Filter Rules: StartDNS

Statement StartDNS
Version 2.2.1+
Purpose Begins an asynchronous DNS lookup in advance of the result being required in a subsequent DNS statement

The StartDNS statement requires a type and hostname, in the format

StartDNS <type> <hostname>

The DNS lookup begins immediately, but the script is allowed to continue. When the DNS statement is reached, the script will get the result of the corresponding StartDNS statement. If the DNS lookup is still in progress, it will allow the lookup to complete, before returning the result.



# Continue with the rest of the script, whilst also running the DNS lookup

# By the time the script reaches the DNS statement, the lookup should either be fully or partially completed.

DNS MX dnsresult
reference/spamrules_statement_startdns.txt · Last modified: 2018/11/14 10:45 (external edit)