Since this attempts to connect to not only A) resolve google-public-dns-a.google.com, and B) connect to it on port 53, it does not work when DNS servers are restricted by firewall policy. I'm opening this issue to get ideas on how we can improve this check.
Is there a specific reason that port 53 is being used? If we're already resolving an outside host, why not try port 80 or 443 instead, since those are much less likely to be firewalled?
EDIT: I've changed the address tuple to ('google.com', 80) locally and it's working fine. @enkore if this is an acceptable change I can open a pull request.
Since this attempts to connect to not only A) resolve
google-public-dns-a.google.com
, and B) connect to it on port 53, it does not work when DNS servers are restricted by firewall policy. I'm opening this issue to get ideas on how we can improve this check.Is there a specific reason that port 53 is being used? If we're already resolving an outside host, why not try port 80 or 443 instead, since those are much less likely to be firewalled?
EDIT: I've changed the
address
tuple to('google.com', 80)
locally and it's working fine. @enkore if this is an acceptable change I can open a pull request.