dns.hpp: implement custom DNS resolver

A custom DNS resolver is needed to implement OONI's dnst.