Or may be it's possible to build your own resolver, but it has toA suggestion from my side would be to use the roots of orsn ( https://www.orsn.org/en/ ) instead of the "official" ones. I personally have good experiences with them since 2013.
resolve DNS queries with DNS roots servers, or another DNS resolver you
will trust?