nic-6443 commented on issue #5233:
URL: https://github.com/apache/apisix/issues/5233#issuecomment-943359455


   At present, the APISIX nacos plug-in does not perform dns resolution on the 
back-end host it gets ([code 
location](https://github.com/apache/apisix/blob/master/apisix/discovery/nacos.lua#L303-L330)),
 so if the domain name is configured in nacos, it will be directly used as the 
parameter of `balancer.set_current_peer`, which will lead to `no host allowed 
While connecting to upstream` error. 
   The configuration node on the Dashboard page will first do dns query and 
then give `balancer.set_current_peer`, so it can work. [code 
location](https://github.com/apache/apisix/blob/master/apisix/init.lua#L166-L166)
   So the error you encountered is in line with expectations, we can further 
consider whether service discovery should support configuration in the form of 
domain names.
   


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