|
MXLookup - How to start system tools
By Uwe Holz
Last Update:
Monday, June 30, 2003
More information about MX Lookup and E-mail delivery can be found at in RFC 974.
MXLookup can be used in order to determine the e-mail relay servers for a specific e-mail domain name. This approach is described by RFC 974 for Internet mail transport from client to server and between different mail server.
Windows offers some very interesting utilities which has been un doubtable derived from Unix. Programs like NSLookup, IPConfig, Ping, Tracert etc. belong to the group of such Unix based utilities. Unfortunately there is no simple API in order to get information delivered by the mentioned tools.
MXLookup shows you how to call those tools from within your application and how to use their results.
Nslookup can be used like follows in order to get MX results:
C:\>nslookup -type=MX gmx.net. 
The sample above shows the relay server for e-mail domain gmx.de.
MXLookup.exe is a GUI based programs demonstrating how to call nslookup.exe, in order to
- suppress opening console window by nslookup.exe,
- redirect the console output to an internal buffer,
- filter required information from the redirected internal buffer

The program includung complete source code can be downloaded using the following link: mxlookup.zip
|