基于nginx proxy dns server 原理实际行就是stream模式,因为nginx 支持基于stream 模式的lb同时支持(tcp.udp)以下是一个简单的配置 环境准备 docker-compose 文件 version: "3" services: lb: image: openresty/openresty:alpine volumes: - "./nginx-lb.conf:/usr/local/openresty/nginx/conf/nginx.conf" - "./dns.log:/v…