DNS Client in C++