0

Somehow my code needs 2 DNS Servers, one to resolve container names and other to resolve my domain FQDNs. Adding 2 DNS to the container is not working. How can I add my custom dns records to docker's default DNS Server ?

Tried --dns paramter and dns arg from docker compose

#    dns:
#      - 172.17.0.2
#      - 127.0.0.11
#      - some_ip
#    network_mode: bridge

first IP is a local dns server which is going to resolve my domain FQDNs sencond IP is docker's default dns which is needed resolve container names ( clear my concept if this is not needed ) third is a fallback IP which is my organization's DNS Server.

Azee77
  • 98
  • 8
  • Possible duplicate of [Docker cannot resolve DNS on private network](https://stackoverflow.com/questions/39400886/docker-cannot-resolve-dns-on-private-network) – LinPy Aug 14 '19 at 09:27
  • @linpy Not a duplicate of above mentioned comment. That post is not relevant to this. – Azee77 Aug 16 '19 at 03:16

0 Answers0