How to perform “nslookup host server”

前端 未结 3 1307
[愿得一人]
[愿得一人] 2020-11-30 13:47

My C# service needs to periodically poll nslookup host server. Currently it spawns a Process that executes batch script. Due to perfor

3条回答
  •  时光说笑
    2020-11-30 14:22

    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.

提交回复
热议问题