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

   ### Description
   
   The proxy-mirror doesn't support brighter DNS resolution, as its feature is 
currently based on Nginx's directive, which uses Nginx's own DNS resolution.
   
   As Nginx's own DNS resolution doesn't support modern DNS features, this 
brings some inconvenience, especially under k8s.
   
   To solve the problem, we need to resolve the host ourselves, and pass the 
result to the Nginx variable `upstream_mirror_uri`.
   
https://github.com/apache/apisix/blob/3c0757477a8c4e24910bb998d06e1d13ec283738/apisix/plugins/proxy-mirror.lua#L63-L65
   
   We can use the method below to resolve the host:
   
https://github.com/apache/apisix/blob/3c0757477a8c4e24910bb998d06e1d13ec283738/apisix/core/resolver.lua#L44


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