commit | f54cf26090579f0ccf841bf27178a8a591e07bfc | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Feb 19 10:06:24 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Mon Aug 02 11:12:13 2021 +0800 |
tree | 9a176110f6b4abd689d42e517b2cc90c1c69758b | |
parent | 088cdcf4b29f9f0f71326e268b7462c57ce383fa [diff] |
Implement DoH server for testing This is the initial implementation of DoH tests. Similar to how DnsTlsFrontend works, the code in rust is a proxy which forwards DoH queries to a backend cleartext nameserver. The code in C++ is a wrapper for tests to communicate with Rust DohFrontend. Bug: 155855709 Bug: 181642979 Test: m libdoh_frontend_ffi Change-Id: If1d7ab1bdd242a9b4be4b1f72c453c6a86245dbe
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.