Specify which DNS servers to use to resolve hostnames in .NET

前端 未结 4 1201
野性不改
野性不改 2020-12-09 10:46

I\'d like to know if there\'s any way to force the System.Net.Dns class to resolve hostnames using a set of custom DNS servers instead of using the ones that are associated

4条回答
  •  眼角桃花
    2020-12-09 11:38

    You can do this with "JH Software's DNS Client for .NET" - without changing the DNS local servers. See the second code sample at http://www.simpledns.com/dns-client-lib.aspx

提交回复
热议问题