summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qdnslookup.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-05-10 13:17:02 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-05-23 21:23:43 -0700
commit282b078fca5ae5f485f6d80ff4afe4d58e178c8d (patch)
tree68b3bcde5666aef2de0e4235f9163837398f7b5c /src/network/kernel/qdnslookup.cpp
parentbce7009f552ed1e28ac2687ef004203f285ee21c (diff)
tst_QDnsLookup: add a test for setNameserver
I had to write a sample query test to ensure that those servers can be reached. They can't from the my corporate network, for example: QDEBUG : tst_QDnsLookup::setNameserver(normal) QHostAddress("8.8.8.8") discarded: "Network operation timed out" QDEBUG : tst_QDnsLookup::setNameserver(normal) QHostAddress("2001:4860:4860::8888") discarded: "Network unreachable" QDEBUG : tst_QDnsLookup::setNameserver(normal) QHostAddress("1.1.1.1") discarded: "Connection refused" QDEBUG : tst_QDnsLookup::setNameserver(normal) QHostAddress("2606:4700:4700::1111") discarded: "Network unreachable" This will also take care of ignoring the IPv6 servers on systems without it (as above). Change-Id: I3e3bfef633af4130a03afffd175de18af24add70 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/kernel/qdnslookup.cpp')
0 files changed, 0 insertions, 0 deletions