Revert "Revert "Enable getaddrinfo parallel lookup by default""

This reverts commit aa483269e1ff88ceca3fd3d6930ec71075eb3ae9.

Also set the required tls_frontend option in resolv_gold_test
to make it compatible with parallel_lookup enabled.

Reason for revert: The TLS issue is expected to be solved in aosp/1492679. Re-enable this feature by defualt.

Bug: 168607036
Test: atest

Change-Id: I62b84190006306a63d471c8ccd538bbc32720ab9
2 files changed
tree: c1523151e6c59d2901ce753c3740909e4008c843
  1. aidl_api/
  2. apex/
  3. binder/
  4. include/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. Dns64Configuration.cpp
  9. Dns64Configuration.h
  10. DnsProxyListener.cpp
  11. DnsProxyListener.h
  12. DnsQueryLog.cpp
  13. DnsQueryLog.h
  14. DnsQueryLogTest.cpp
  15. DnsResolver.cpp
  16. DnsResolver.h
  17. DnsResolverService.cpp
  18. DnsResolverService.h
  19. DnsStats.cpp
  20. DnsStats.h
  21. DnsStatsTest.cpp
  22. DnsTlsDispatcher.cpp
  23. DnsTlsDispatcher.h
  24. DnsTlsQueryMap.cpp
  25. DnsTlsQueryMap.h
  26. DnsTlsServer.cpp
  27. DnsTlsServer.h
  28. DnsTlsSessionCache.cpp
  29. DnsTlsSessionCache.h
  30. DnsTlsSocket.cpp
  31. DnsTlsSocket.h
  32. DnsTlsSocketFactory.h
  33. DnsTlsTransport.cpp
  34. DnsTlsTransport.h
  35. Experiments.cpp
  36. Experiments.h
  37. ExperimentsTest.cpp
  38. getaddrinfo.cpp
  39. getaddrinfo.h
  40. gethnamaddr.cpp
  41. gethnamaddr.h
  42. hostent.h
  43. IDnsTlsSocket.h
  44. IDnsTlsSocketFactory.h
  45. IDnsTlsSocketObserver.h
  46. libnetd_resolv.map.txt
  47. LockedQueue.h
  48. NOTICE
  49. OperationLimiter.h
  50. OperationLimiterTest.cpp
  51. OWNERS
  52. params.h
  53. PREUPLOAD.cfg
  54. PrivateDnsConfiguration.cpp
  55. PrivateDnsConfiguration.h
  56. PrivateDnsConfigurationTest.cpp
  57. README-DoT.md
  58. README.md
  59. res_cache.cpp
  60. res_comp.cpp
  61. res_comp.h
  62. res_debug.cpp
  63. res_debug.h
  64. res_init.cpp
  65. res_init.h
  66. res_mkquery.cpp
  67. res_query.cpp
  68. res_send.cpp
  69. res_send.h
  70. res_stats.cpp
  71. resolv_cache.h
  72. resolv_cache_unit_test.cpp
  73. resolv_callback_unit_test.cpp
  74. resolv_private.h
  75. resolv_test_config_template.xml
  76. resolv_tls_unit_test.cpp
  77. resolv_unit_test.cpp
  78. ResolverController.cpp
  79. ResolverController.h
  80. ResolverEventReporter.cpp
  81. ResolverEventReporter.h
  82. ResolverStats.h
  83. sethostent.cpp
  84. stats.h
  85. stats.proto
  86. TEST_MAPPING
  87. util.cpp
  88. util.h
README.md

Logging

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.