Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodSmtp
- Methods
- Properties
- Authentication
- Blocking
- Certificate
- CharSet
- DNSHostname
- Hostname
- LastError
- LastErrorText
- Login
- MailFrom
- MailTo
- Message
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RequestReceipt
- RetryCount
- RetryWait
- Security
- State
- StateText
- Tag
- Timeout
- Transcript
- UseIPv6
- Version
- Events
- IwodSmtpClientNotify
- SmtpEncoder
- SmtpHdr
- SmtpHdrs
- SmtpMsg
- SmtpMsgs
- wodSmtp
- How to get support?
- Technical information
- Fast notifications interface
- Error list
DNSResponse Event
Fires when DNS query returns.
Syntax
- Basic
object.DNSResponse (ByVal Address, ByVal Response, ByVal Success, ByVal ID)
The DNSResponse(object,Address,Response,Success,ID) syntax has these parts:
The DNSResponse(object,Address,Response,Success,ID) syntax has these parts:
object | An expression evaluating to an object of type wodSmtp |
Address | A String value. Hostname or domain that was to be resolved. |
Response | A String value. Contains response data returned by the server. |
Success | A Boolean value. Determine if response was successful or not. |
ID | A Variant value. Variant value you supplied in QueryDNS method. |
Remarks
DNSResponse event is fired when response is received from your QueryDNS method call. 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 fire 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 wodSmtp. For example, DNS server may reply that it's not authoritative for your query and will point you to another DNS server. wodSmtp will automatically resend the request - until response is received or timeout expires.
ID argument will hold whatever you put in QueryDNS'es ID argument.