How to perform “nslookup host server”

前端 未结 3 1276
[愿得一人]
[愿得一人] 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:18

    I'm not sure how to do this using the framework directly because I've never needed to use a DNS server different than the one specified in the local machine configuration. But you might want to give this library a try. I've never used it but as far as I can tell it will allow you to specify a DNS server to use in resolving the host name you pass.

提交回复
热议问题