summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-05-15 13:06:58 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-05-16 11:46:41 -0700
commit365af87f94f3970fd4fca248e87f7a57d27ffa7d (patch)
treec960c5195ca130631db960ad36d86bec896bb478
parenteb51454b907b02aa67268c162896fc6778920e4c (diff)
downloadqtbase-365af87f94f3970fd4fca248e87f7a57d27ffa7d.tar.gz
QDnsLookup/Windows: don't append domain search suffixes
The Unix code doesn't do that. [ChangeLog][Important Behavior Changes] QDnsLookup on Windows will no longer append the system's configured domain name for look ups that contained only a single label (that is, no dots). This matches the Unix behavior. Change-Id: I5f7f427ded124479baa6fffd175f69e537cf9ca2 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
-rw-r--r--src/network/kernel/qdnslookup_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qdnslookup_win.cpp b/src/network/kernel/qdnslookup_win.cpp
index 7a09035774..baab97dc58 100644
--- a/src/network/kernel/qdnslookup_win.cpp
+++ b/src/network/kernel/qdnslookup_win.cpp
@@ -60,7 +60,7 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN
request.Version = 1;
request.QueryName = reinterpret_cast<const wchar_t *>(requestNameUtf16.constData());
request.QueryType = requestType;
- request.QueryOptions = DNS_QUERY_STANDARD;
+ request.QueryOptions = DNS_QUERY_STANDARD | DNS_QUERY_TREAT_AS_FQDN;
if (!nameserver.isNull()) {
memset(dnsAddresses, 0, sizeof(dnsAddresses));