How do I set up a DNS container inside docker-compose?
问题 I think this may be an XY problem, so I'll include the context of the question since I don't know the best way to solve this problem. I have a kubernetes environment set up on AWS such that I have two parts, an nginx container, and a backend service (which I'll call SvcA). Since the backend service can come and go, in my nginx config I have something that looks like: resolver kube-dns.kube-system.svc.cluster.local valid=60s ipv6=off; server { # stuff location / { set $backend "SvcA.default