commit | 80f76aa18c5fc6022a30e0745c8232a7bf3aa585 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Apr 08 15:02:24 2022 +0000 |
committer | Mike Yu <yumike@google.com> | Mon Apr 11 11:54:03 2022 +0000 |
tree | b3c707dc42e7c1f88f37d0fd3c772cfd77bf80aa | |
parent | 84f5fa8bca6b2bb693700a65844165cdf3a7a8ed [diff] |
DoT quick fallback If a DNS query that was sent to a DoT server times out, instead of trying the next DoT server, let the query fall back to UDP. This will be helpful when firewall blocks TCP/853 traffic, for example captive portal re-login. DoT quick fallback is enabled by default. It's configurable by the flag `dot_quick_fallback`. Bug: 228594312 Test: cd packages/modules/DnsResolver && atest Test: On a wifi network with 2 validated DoT servers, blocked TCP/853 traffic. DNS queries took 1x time w/ the flag enabled, and took 2x time w/o the flag enabled. Change-Id: I27992baf4dd450391ab6241a5bf46b71ae656766
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.