I have implemented the DNSLookup.cs code that graciously shared on C#Corner and others by Mr. Bill Andreozzi.
The code works perfectly (thank you), but now
I have the need to be able to pass in the IP addresses of the DNS Server(s) I would
like to use (to make the MX request) rather than the default DNS Server on the application's
server.
We would like to use the opendns.com
server addresses as the 4th parameter in the dnsquery method of
dnsapi.dll.
208.67.222.222
208.67.220.220
But I cannot seem to get that passed to the unmanaged code.
Using the code for DNSLookup.cs here, is there a way to
over-ride the default DNS Server for an MX lookup to use specific DNS
Server(s)?
Thank you for your time and knowledge.
Patricia Hindes