My C#
service needs to periodically poll nslookup host server
. Currently it spawns a Process
that executes batch script. Due to performance reason I'm considering to do this check using some API
. But the problem is, that using, for example, System.Net.Dns.GetHostAddresses
I can only emulate nslookup host
check, but not nslookup host server
(without seconds param).
I've looked at bunch of similar SO questions, but none of them seem to solve my issue.
Are there any way to perform nslookup host server
in C#
without using some heavy third-patry library?