nslookup for C# and C++ to resolve a host using a specific Server
- by Shahmir Javaid
i need to resolve a hostname using a specific DNS server like you would in nslookup
C:\>nslookup hotname 192.100.10.10
Server: UnKnown
Address: 192.100.10.10
Name: hostname.host
Address: 192.100.10.14
But ofcourse in return i dont just want the address i want all the values for Server, Address, Name and Address
I have looked at the System.Net.Dns Class but that only gives me the Resolved IP Address and dosent let me select the DNS Server of my choosing
If any one has done this before and you can help me with this. it would be great :D
Thanks in Advanced