commit | a11d8675e49d7e74ee6e11a188757b0a73a7fdf8 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Sat Mar 05 14:03:58 2022 +0800 |
committer | Ken Chen <cken@google.com> | Tue Mar 08 07:34:56 2022 +0800 |
tree | 563b2512e769cf980fb6e4f256e4da8fe9c01d32 | |
parent | daa67f1b10cee982f700ffa15d930be70cbf3127 [diff] |
Add .local resolution fallback mechanism RFC6762 specifies that the ".local" suffix is specific to Multicast DNS. It recommends against using ".local" as a Unicast DNS top-level domain. However, some network environments still setting up ".local" as Unicast DNS top-level domain. To better support them, DNS resolver provides a fallback mechanism to send Unicast DNS queries when Multicast DNS is failed. Bug: 221359963 Test: atest Change-Id: I1b8b20333481c40faf6f9fcbf9884a7545c87b2b
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.