You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/02/27 04:29:57 UTC

[GitHub] [incubator-apisix] qiujiayu commented on a change in pull request #1167: feature: auto import nameservers into APISIX from system resolv file.…

qiujiayu commented on a change in pull request #1167: feature: auto import nameservers into APISIX from system resolv file.…
URL: https://github.com/apache/incubator-apisix/pull/1167#discussion_r384908035
 
 

 ##########
 File path: bin/apisix
 ##########
 @@ -525,6 +530,25 @@ local function check_or_version(cur_ver_s, need_ver_s)
     return true
 end
 
+
+local function system_dns_resolver()
+    local file, err = io.open("/etc/resolv.conf")
+    if err then
+        return nil, err
+    else
+        local lines = file:lines()
 
 Review comment:
   done

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services