Implement DNS callback. Change some std::cout style logging to pantheios