For my task, I need to block some hostnames, but since some websites may reply with different IP addresses to different DNS queries (for example, Google DNS and any other DNS server), I'd like to resolve same hostname using different DNS servers to get as many possible IP addresses as possible.
In short: I'd like to resolve "example.com" to IP using DNS #A and resolve "example.com" to IP using DNS #B without making any serious changes to my network configuration (or better without making any changes at all).
I've looked at Poco::Net::DNS and c-ares, however they both seem to use OS DNS settings and don't allow to point queries to other DNS servers (correct me if I'm wrong).