How can I check if all of dns resolvers are working under linux console?
closed as unclear what you're asking by Zelda, Graeme, slm♦, jasonwryan, vonbrand Mar 18 at 19:16
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
You can get a list of DNS resolvers from
And usually you'd use
Here's one way to put the functions together. It prints the IP address of each nameserver, followed by