Closed mohitsethia closed 1 month ago
@mohitsethia - thanks for implementing this.
The current implementation of the DNS probe seemed a bit backward to me: it resolves a name using the local DNS server. While it may be a good indication if whether the local computer's connection is up, it's not necessarily a great indicator of whether the internet connection is for a site as the response may be cached. It would be more interesting to resolve a host with an external DNS server, which you've implemented.
I make use of up in a tool of mine and have bumped into this issue: see hugoh/upd#26.
Adding the support of the custom DNS Resolver, reads with -r flag & would use the default one if not provided. issue [link]