I want to know how can I check if a domain is alive in C #?
I did it
IPAddress[] addresslist = Dns.GetHostAddresses("domain");
it returns IP (s), which is good, but I want to check if it is alive (like ping)?
I just need to know if the computer is on the same network as the server, so I have a check function, but the functions are based on the code above and they return IP addresses, but I noticed that it is based on cached DNS
I want to add another check function to see if the server is on the network!
amuses
source
share