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 up

WARNING: Ignoring 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”