commit | 3aea8db351212126ee1420598090057c258f8335 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Tue May 09 12:28:38 2023 +0000 |
committer | Mike Yu <yumike@google.com> | Mon May 22 05:57:16 2023 +0000 |
tree | b2db39ac76ff944335ac263a73d0a218fa76ccca | |
parent | ca0ecb959ffb4a14dc0198b4c3ab3538c1035f1c [diff] |
Stop checking IP address with the DoH list if the hostname is known If the private DNS hostname is known, the candidate DoH IP addresses are resolved from the hostname. We already do hostname verification to ensure the validity of the server, so we don't need to strictly limit the DoH IP addresses in such case. Bug: 283708512 Test: set private DNS to dns.google/dns64.dns.google/cloudflare-dns.com and saw DoH queries were sent. Change-Id: I359f14d46495dc55fd906ffeb624b7a2b8453acc
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.