Exemple #1
0
AsyncDNS::AsyncDNS(QObject *parent) : QObject(parent)
{

    QHostAddress dns_server("114.114.114.114");
    quint16      port = 53;
    DNS_server = dns_server;
    DNS_port   = port;

    AsyncDNS::AsyncDNS(dns_server, port, parent);
}
void
dns_suite(void)
{
	dns_server(); /* Do this before we call evdns_init. */

	evdns_init();
	dns_gethostbyname();
	dns_gethostbyname6();
	dns_gethostbyaddr();

	evdns_shutdown(0);
}