I'm using D5 with the Windshoes WinshoeMappedPort. It works like a dream :-)
Q: For each connection made through the WinshoeMappedPort a thread is running. In each of these threads I want to make a DNS lookup (converting a name to ip).
So basicly I need some code that I can put inside the code of each thread (I don't with to use synchronized code, due to performance reasons).
If several DNS servers is available, I guess it would be smart to have multiple thread querying each of them. Please comment this issue.
Please note the DNS address can be either on a LAN or modem connection.
Source code would be very appreciated, something like
DNSQuery(ComputerName : String) : TStrings;
I know FPiette has an example using ICS, so don't give me that solution! If I can avoid it, I would try to stick to WinShoes.