Closed mvorisek closed 4 years ago
The Google DNS is reliable, but the results are cached.
So if something failed and the DNS results were cached by Google, the DNS check was failing again and again before the caches has expired.
This PR solves this issue by trying local check first. If it passes, check was successful. If not, the old/Google DNS is used.
It will be also good to convert the static methods to a singleton, so they can be overrided locally. Let me know if that is ok with you, I can propose the changes.
The Google DNS is reliable, but the results are cached.
So if something failed and the DNS results were cached by Google, the DNS check was failing again and again before the caches has expired.
This PR solves this issue by trying local check first. If it passes, check was successful. If not, the old/Google DNS is used.