Re:Show HN: Rust Library to check your Internet connectivity
by jesusprubio on Tuesday May 28, 2019 @06:05AM
(#20028665)
Thank you! Very interesting thoughts, adding them to the repo here:https://github.com/jesusprubio/online/issues/7
Please feel free to contribute ;).
However, there are hostnames that it's safe to hardcode: the DNS root servers, a.root-servers.net etc.
If you have working hostname resolution, even if intermittently, you could in principle resolve those, and then check connectivity. However, it's probably not a good idea to use these crucial public resources for something so pointless!
Interestingly, all of the root servers except G also have a companion website, ${letter}.root-servers.org, which could perhaps be used for an HTTP connectivity check. Those websites aren't hosted on the same machines as the nameservers.