The DnsMode struct provides means to specify the DNS host resolution mode. 更多...
头: | #include <DnsMode> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
Since: | Qt 6.6 |
QWebEngineGlobalSettings::SecureDnsMode | secureMode |
QStringList | serverTemplates |
The QWebEngineGlobalSettings::DnsMode structure describes the DNS mode and the associated DNS server template used for the DNS host resolution.
This variable holds the DNS mode used for the host resolution.
Set secureMode to SecureDnsMode::SecureOnly to only allow DNS-over-HTTPS host resolution using servers from serverTemplates .
Set secureMode to SecureDnsMode::SecureWithFallback to enable DNS-over-HTTPS host resolution using servers from serverTemplates , with a fallback to the system DNS.
另请参阅 QWebEngineGlobalSettings::SecureDnsMode .
This variable holds a list of server URI templates used for secure DNS-over-HTTPS host resolution.
The
serverTemplates
structure member lists
URI templates
. An example of a URI template is https://dns.google/dns-query{?dns}.