DNS lookup for MX record

Dnsapi.zip (1,9 KB)

I’ve got it working with the above implementation - the lib refers to the Dnsapi.dll in the Windows\System32 folder which contains the required functions.

Add the contents of the zip to your project, simply include the .inc file in the global includes and then create an instance of Win32DNS class and use the Lookup of one of it’s version to do a DNS call

2 Likes