commit | ccfd499ee5bf8c68e97591dbdc9ad4ff5e3e30c6 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Tue Jul 06 18:19:10 2021 +0800 |
committer | Ken Chen <cken@google.com> | Wed Jul 14 09:31:10 2021 +0000 |
tree | 23bfc612c6b99566c7c790684ea6c6f480f6c421 | |
parent | 34ed9eeb0653bdc102933521e7e5f01aae63925c [diff] |
Refactor the setupDns to include addIpv{4|6}Dns Move DNS server configurations and network forwardings to setupDns together. Moving those implementation details to the same function not only reduces code duplication, but also help us to focus on test logic. Bug: 176507580 Test: atest Change-Id: Ib9a9ffd303fb5a531586178d0f3de8709889d5dd
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.