darkSheep404 opened a new issue, #11107:
URL: https://github.com/apache/apisix/issues/11107

   ### Description
   
   we using upstream config in yml like that
   
   ```
   upstreams:
     - id: app
       name: app
       pass_host: node
       nodes:
         "app.test.com": 1
       scheme: https
   ```
   
   currently `app.test.com` point to 2 instance A (ip : 1.1.1) ,B (ip: 2.2.2)
   if A down, `app.test.com` will auto point to B(ip: 2.2.2)
   when using nginx
   we can use below code to let nginx refresh ip of `app.test.com`  every 10 
seconds to ensure get the lastest ip
   ```
   location /lst-dns-test/ {
      resolver 6.6.6.6  valid=10s;   # 6.6.6.6 is a dns server
      set $proxy_url "app.test.com";
      proxy_pass http://$proxy_url;
   }
   ```
   can we do this in apisix  for below upstream ?
   
   
   ```
   upstreams:
     - id: app
       name: app
       pass_host: node
       nodes:
         "app.test.com": 1
       scheme: https
   ```
   
   
   ### Environment
   
   - APISIX version 3.2 LTS
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to