OFDNSResolver: Let the buffer belong to the query

This means the buffer automatically gets cleaned up when the query is
deallocated.