| commit | dd1500ea87b4003416e154520b27693bf36be7fb | [log] [tgz] |
|---|---|---|
| author | Remi NGUYEN VAN <reminv@google.com> | Wed Apr 30 11:12:29 2025 +0900 |
| committer | Remi NGUYEN VAN <reminv@google.com> | Thu May 08 18:12:36 2025 +0900 |
| tree | 79a88db1adbff366e1eb9722f45ef720dd5ffe5f | |
| parent | 746bd5f2185e5ce9e64b67ceb64f3fd1f5cd6f6a [diff] |
Add support for RESOLV_TRY_ALL_SERVERS Queries with the flag set will try all resolvers. - If a resolver returns NOERROR and has replies, its response is used. - If all resolvers return another rcode or empty replies (NODATA), the first reply will be used. - If queries time out, the resolver will apply the usual retry strategy to that server. If all queries time out on one of the servers, a timeout will be returned. Bug: 240259333 Test: atest Flag: EXEMPT legacy flag dns_ddr_version Change-Id: Iea915876cc1e2e2d4db00eb038d2548c39c04d94
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.