domain name system – DNS lookup error when using docker-compose inside RHEL behind organization proxy


Facing the DNS lookup error while running docker-compose -f docker-compose.prod.yml up

fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz: DNS lookup error

Post this the docker build fails.

Also nslookup also fails with server can't find .... NXDOMAIN

Sidenote – This is an organization’s on-premises server behind proxy. I believe I have set http_proxy correctly.

My IT support guy gave cryptic answer with no help “you will either need own DNS or internal resolution for containers” and “you may want to request DNS and SRV records to be made pointing to your cluster hosts”