> What is the correct procedure for determining whether a DNS query got a > valid result, or failed because it couldn't reach the server or because > the server rejected the connection? I can't check the status of WorkSock > as that isn't available outside the function.
See for result of DNSQuery method. True - you got some reply from DNS server. However reply can contain requested result, or it can contain some error from DNS server. See for RCode for errors from DNS server. As quick test you can see, if stringlist with result is empty or not. False - you not got any reply from DNS server. It may be invalid DNS server address, network problem, timeout, etc. See for TDnsSend.Sock.LastError for details. -- Lukas Gebauer. E-mail: [EMAIL PROTECTED] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
