This may sound like an obvious question to some, but can someone tell me how I might determine the MX record for a given domain using Winsock functions? Is there a resolver library (bind) that I would need to access? This has always puzzled me as to how MX records are resolved. rgds