A simple question. How do I test if my current DNS is working or down? Would it involve polling? That I fear would take up resources and also require execution on a separate thread.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes it would involve looking up something, resolving a host name or some other DNS function. In addition you’d need to ensure that the host you’re trying to resolve has not been cached in the local DNS cache too.
The Dns.GetHostByName function performs a lookup, but that doesn’t mention if it will use the local cache. It’s likely that it does, as it probably uses the OS lookup functionality under the hood.