There is one odd case where asking DNS won't work accurately: if a domain is registered but has no nameservers.
I have a tool in the past https://gist.github.com/icy/b30893cecc8ec657317ba93831b0fd4a... it works fine as I experience. The tool has option `--all` to check by using both google/open dns. E.g,
$ whoisvn google-is-good.com --all
opendns.org: google-is-good.com available
googledns: google-is-good.com available
$ whoisvn google-is-bad.com --all
opendns.org: google-is-bad.com available
googledns: google-is-bad.com available echo nmu360.se|exec nc -vvn 91.226.37.83 43