commit | 3977d487955d887c29162717a2cca726ccbf0a60 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed Feb 26 17:18:57 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Wed Feb 26 17:49:46 2020 +0800 |
tree | bdd692dc8d5aabcce699e19df96c8c1c94823bba | |
parent | ecc52827de6324fa2ae829ad96c1ce1c50d97d29 [diff] |
Extend ResolverTest.BrokenEdns to cover using EDNS0 for cleartext DNS In opportunistic mode, if the resolver somehow fallbacks to cleartext DNS servers, it uses EDNS0 to send queries. If the server can't recognize EDNS0, the resolver retries without EDNS0 only when the server can make a response with rcode FORMERR. Add more testcases for ResolverTest.BrokenEdns to ensure the behavior "retries without EDNS0 when receiving rcode FORMERR" correct. Bug: 120257033 Test: resolv_integration_test passed Change-Id: I373fc134a56abc12dc3ff24b3cd144c9a37f4844
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.