From c8802e3bef6b73d349a711b187c72aea0a3dd964 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 3 Dec 2009 23:10:02 +0100
Subject: Reinitialize the resolver on every query.

This hopefully fixes the DNS server caching behavior
on network change.

diff --git a/Swiften/Network/PlatformDomainNameServiceQuery.cpp b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
index 13f5fc8..d6c87dc 100644
--- a/Swiften/Network/PlatformDomainNameServiceQuery.cpp
+++ b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
@@ -81,6 +81,8 @@ void PlatformDomainNameServiceQuery::doRun() {
 	DnsRecordListFree(responses, DnsFreeRecordList);
 
 #else
+	// Make sure we reinitialize the domain list every time
+	res_init();
 
 	std::cout << "SRV: Querying " << service << std::endl;
 	ByteArray response;
-- 
cgit v0.10.2-6-g49f6