Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎11-12-2015

DNS search domain issue in container

When trying to play with a tensorflow example, I tried installing with pip but failed due to DNS resolving every domain to the wildcard domain that I have configured. For example the docker container does a DNS query for google.com with the following /etc/resolv.conf

 

 

 

nameserver 100.77.0.10
search default.svc.cluster.local svc.cluster.local cluster.local openstacklocal trio.mydomain.com
options ndots:5

 

 

 

ping google.com
DNS query: google.com.trio.mydomain.com
response cdwsm.trio.mydomain.com

 

Since I have configure *.trio.mydomain.com as wildcard to point to cdwsm.trio.mydomain.com on my DNS server, this is getting resolved to the wrong IP address. How can I make it first to query outside the search domain, so that public hosts are resolved correctly?

Announcements