gy09535 commented on a change in pull request #3129:
URL: https://github.com/apache/apisix/pull/3129#discussion_r549945969



##########
File path: t/core/utils.t
##########
@@ -239,3 +236,32 @@ res:tell David to
 res:John and David
 res: and David
 res:John and \$me
+
+
+
+=== TEST 7:  resolve with search
+--- config
+    location /t {
+        content_by_lua_block {
+            local core = require("apisix.core")
+            local resolvers = {"223.5.5.5", "223.6.6.6"}
+            local search = {"google.com"}
+            local ndots = 5
+            core.utils.init_dns_proxy({
+                ndots = ndots,
+                search = search,
+                resolvers = resolvers,
+            })
+            local ip_info, err = core.utils.dns_parse("news.google.com")

Review comment:
       I try to use test with 
https://github.com/Kong/lua-resty-dns-client/blob/master/spec/client_spec.lua#L219
 , but the method "_search_iter"  is not export.So I use the special domain to 
do the test.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to