Curl from shell script inside a minikube’s pod container returns could not resolve host

I am running two applications inside minikube. I try to issue a curl command to one of the application pods and it runs fine from outside the containers but when i run the same curl command from a bash script inside a container, I get no output. What could be wrong?

Update:

I just found in the logs for my pod that curl gives the issue "could not resolve Host" for any type of host. Even for google. I have also added the DNS name to my etc/hosts file

Source: Docker Questions