My C# service needs to periodically poll nslookup host server. Currently it spawns a Process that executes batch script. Due to perfor
I looked into this a while back. It is not possible in the standard class libraries, so you are going to have to use an external component to do this properly.
There are a number of free and paid choices available to you. My implementation was based around a posting on CodeProject, which worked quite well. DNS Client Library for .NET (also mentioned by kprobst) was released after I finished mine, or I would've used this one initially.