An adapter layer for DNS queries.