I upgraded my AWX to the newest version because of an import bug with Amazon Web Services on my older version. The import bug is now fixed. However, I am not able to access my internal network anymore on aws. My DNS is internal. If I put my internal DNS in the resolv.conf, it does not work. If I put 8.8.8.8, the DNS works fine. I able to ping google.com. I can not reach my internal address. I am a newbie in Docker. This could be something that I need to do in the networking to fix it.
Kind Regards,
Sanjib
As another note, I can ssh and reach all of my internal IP addresses. So the networking seems fine.
I’ve had this happen to me before. It’s unrelated to awx. A restart of the docker vm usually solves it. Are you running docker in a container, native, or docker for Mac?
I am running docker as a container on AWS. My ansible server is also my DNS server. I stopped and restarted the awx_web and awx_task containers. However, I still can not get DNS to function.
Kind Regards,
Sanjib
Try restarting the docker service or reboot the machine.
I restarted the docker service. I am not in a situation to where I can reboot the system.
Kind Regards,
Sanjib
Still no luck. When I do nslookup on the internal DNS system, it says connection refused.
Kind Regards,
Sanjib
I fixed the issue. It looks like by default docker will not pick up an internal DNS. I went to the server and added this into the /etc/docker/daemon.json file. Create it on the server if it is not there.
{
“dns”: [“internal dns ip”, “8.8.8.8”]
}
I put my internal dns and then added the google name server. I restarted docker for the changes to take effect. Afterwards, everything was working.
Kind Regards,
Sanjib
Thanks for circling back and posting your fix!
No problem. I also added the docker network to my named.conf in our DNS server. Doing both of those fixed the issue.
Sanjib