Re: [twsocket] Getting DNS MX record

2008-01-09 Thread Albert Wiersch

Oops.. I meant synchronously. It seems TDnsQuery is asynchronous only.

I'm trying to get/verify an MX record using TDnsQuery.

1. How can I do this synchronously? There doesn't appear to be a special
function to do this.
2. How can I set the Addr property to the system's normal DNS?
3. Should I use TCP or UDP and what is the difference when it comes to
getting an MX record? Is it best to just use TCP?

Basically, I just want to verify that there's an MX record for the domain of
an email address. Is there an easier way to do this?

Thanks for any help you can provide.

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.com/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Albert Wiersch
 Sent: Tuesday, January 08, 2008 4:54 PM
 To: 'ICS support mailing'
 Subject: [twsocket] Getting DNS MX record
 
 I'm trying to get/verify an MX record using TDnsQuery.
 
 1. How can I do this asynchronously? There doesn't appear to be an
 MXLookupASync() function.
 2. How can I set the Addr property to the system's normal DNS?
 3. Should I use TCP or UDP and what is the difference when it comes to
 getting an MX record?
 
 Basically, I just want to verify that there's an MX record for the
 domain of
 an email address. Is there an easier way to do this?
 
 Thanks for any help you can provide.
 
 --
 Albert Wiersch
 AI Internet Solutions
 [EMAIL PROTECTED]
 http://www.htmlvalidator.com/
 
 
 
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Getting DNS MX record

2008-01-09 Thread Albert Wiersch

I discovered DnsQuery() in Windows 2000+. It looks like this will meet my
needs much better than TDnsQuery.

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.com/


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Albert Wiersch
 Sent: Wednesday, January 09, 2008 2:04 PM
 To: 'ICS support mailing'
 Subject: Re: [twsocket] Getting DNS MX record
 
 
 Oops.. I meant synchronously. It seems TDnsQuery is asynchronous
 only.
 
 I'm trying to get/verify an MX record using TDnsQuery.
 
 1. How can I do this synchronously? There doesn't appear to be a
 special
 function to do this.
 2. How can I set the Addr property to the system's normal DNS?
 3. Should I use TCP or UDP and what is the difference when it comes to
 getting an MX record? Is it best to just use TCP?
 
 Basically, I just want to verify that there's an MX record for the
 domain of
 an email address. Is there an easier way to do this?
 
 Thanks for any help you can provide.
 
 --
 Albert Wiersch
 AI Internet Solutions
 [EMAIL PROTECTED]
 http://www.htmlvalidator.com/

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be