POC refactoring in order to support stream based transports for Dns

It is just an example. I need to manage how to establish TCP connections while resolving records. Will do it later