Search: 
Available in: IP*WORKS!
Dns Class
DNS Component [IP*Works! V8]

Properties   Methods   Events   Configuration Settings  

The DNS component is used to query DNS for record information.

NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.

Remarks

The DNS component queries a DNS server for records as specified in RFC 1035 and other relevant RFCs. The component property QueryType indicates the record to be queried. Calling Query will initiate the query.

Once the query is complete, a single Response event will fire and the record properties will be filled. StatusCode is the server's success or fail code, and Status is a standard string interpretation of the code.

The records are contained in the Records properties . The programming interface is designed to allow a full walk of the records in the DNS response, including provisions for handling new record types.

The component operates synchronously by default (waits for a response before returning control to the caller), however, the component may also operate asynchronously (return control immediately), by setting Timeout to 0. Please refer to the Timeout property for more information.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for complete descriptions.

DNSPort The port to connect to on the DNS Server.
DNSServer The address of the DNS Server.
Idle The current status of the component.
LocalHost The name of the local host or user-assigned IP interface through which connections are initiated or accepted.
QueryType The record type to query.
RecordSource The source of records provided in the Records properties .
Records Collection of records in the last response.
Recursive Determines whether to ask the DNSServer to recursively query other servers.
RequestId The id of the current DNS request.
Status A standard string interpretation of StatusCode.
StatusCode The success or error code for the DNS query.
Timeout A timeout for the component.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for complete descriptions.

Config Sets or retrieves a component configuration setting.
DoEvents Processes events from the internal message queue.
GetFieldValue Get the value of the field indicated from a record.
Interrupt Interrupt the current method.
Query Query a Domain

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for complete descriptions.

Error Information about errors during data delivery.
Response Fires after a DNS query.

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for complete descriptions.

AbsoluteTimeout Determines whether timeouts are inactivity timeouts or absolute timeouts.
CodePage The system code page used for Unicode to Multibyte translations (Windows/COM only).
FirewallData Used to send extra data to the firewall.
InBufferSize The size in bytes of the incoming queue of the socket.
MaxPacketSize The maximum length of the packets that can be received.
OutBufferSize The size in bytes of the outgoing queue of the socket.
ShareLocalPort If set to True, allows more than one instance of the component to be active on the same local port.
UseConnection Determines whether to use a connected socket.
UseIPv6 Whether or not to use IPv6.

| About | Privacy Policy | Terms of Use |
© Copyright 2008 /n software inc.