# AWX upgrade messed up my internal DNS

**URL:** <https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [January 5, 2018, 5:05pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425 "2018-01-05T17:05:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 5, 2018, 5:05pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/1 "2018-01-05T17:05:28Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 5, 2018, 5:42pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/2 "2018-01-05T17:42:51Z")

</div>

As another note, I can ssh and reach all of my internal IP addresses. So the networking seems fine.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [January 5, 2018, 6:56pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/3 "2018-01-05T18:56:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 5, 2018, 8:37pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/4 "2018-01-05T20:37:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [January 5, 2018, 8:41pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/5 "2018-01-05T20:41:58Z")

</div>

Try restarting the docker service or reboot the machine.

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 5, 2018, 9:19pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/6 "2018-01-05T21:19:41Z")

</div>

I restarted the docker service. I am not in a situation to where I can reboot the system.

Kind Regards,

Sanjib

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 5, 2018, 10:27pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/7 "2018-01-05T22:27:49Z")

</div>

Still no luck. When I do nslookup on the internal DNS system, it says connection refused.

Kind Regards,

Sanjib

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 8, 2018, 5:31pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/8 "2018-01-08T17:31:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [January 9, 2018, 12:04pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/9 "2018-01-09T12:04:53Z")

</div>

Thanks for circling back and posting your fix!

---

<div class="post-metadata">

**Author:** ![Sanjib\_Sarkar](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Sanjib\_Sarkar](https://forum.ansible.com/u/Sanjib_Sarkar)\
**Post date:** [January 10, 2018, 3:34pm UTC](https://forum.ansible.com/t/awx-upgrade-messed-up-my-internal-dns/26425/10 "2018-01-10T15:34:41Z")

</div>

No problem. I also added the docker network to my named.conf in our DNS server. Doing both of those fixed the issue.

Sanjib
