zdfhub opened a new issue, #7484:
URL: https://github.com/apache/apisix/issues/7484
### Description
deploy way: docker-compose
apisix_conf/config.yaml:
`discovery:
dns:
servers:
- "consul1:8600"`
consul deploy by docker-compose and the same docker network with apisix。
error log:
`init.lua:517: http_access_phase(): failed to set upstream: no valid
upstream node: failed to query the DNS server: dns lookup pool exceeded retries
(1): failed to create a resolver: failed to set peer name: consul1:8600 could
not be resolved (2: Server failure)`

exec into apisix container :
<img width="652" alt="微信截图_20220718184758"
src="https://user-images.githubusercontent.com/20886657/179496726-8fe0e7e1-9c2c-47ac-8886-f0d15b4b5a06.png">
### Environment
- APISIX version (run `apisix version`): apache/apisix:2.14.1-centos
- Operating system (run `uname -a`): docker 20.10.15
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx
version: openresty/1.19.9.1
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`): bitnami/etcd:3.4.9
- APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-centos
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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]