wodSmtpServer ActiveX Control - DNSResponse Method
      
 

Description

Called when DNS query returns.


Return Type

None  


Syntax

object.DNSResponse Owner, Address, Response, Success, ID



The DNSResponse Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtpNotify.
Owner Required. A wodSmtpServer object. Reference to wodSmtpServerCom instance that called this callback method.
Address Required. A String value. Holds hostname or domain that was resolved.
Response Required. A String value. Holds response returned by the server.
Success Required. A Boolean value. Determines if resolving was successful or not.
ID Required. A Variant value. Variant value you supplied through QueryDNS method, as a 'cookie'.

Remarks

NOTE: This method is called only if you implemented IwodSmtpNotify interface in your application, and wodSmtpServer1.Notification property has received reference to instance of your implementation.

DNSResponse notification method is called when response is received from your QueryDNS method. Response argument will contain result of your query. If it was successful, Success argument will contain True, and Response will not be empty. It is possible for Success to be True and Response to have empty string - meaning your request was not resolvable at all, in other words there was no response for your query, although packets were received by DNS server.

DNSResponse will not be called until timeout expires (as set through QueryDNS method), or response is received by the server. If server replies with answer that was not expected, recursive queries are automatically resent by wodSmtpServer. For example, DNS server may reply that it's not authoritative for your query and will point you to another DNS server. wodSmtpServer will automatically resend the request - until response is received or timeout expires.

ID argument will hold whatever you put in QueryDNS'es ID argument.