# resolve list of IPs in txt file to DNS

**URL:** <https://forum.ansible.com/t/resolve-list-of-ips-in-txt-file-to-dns/34760>\
**Category:** Ansible Project\
**Created:** [March 10, 2021, 4:56pm UTC](https://forum.ansible.com/t/resolve-list-of-ips-in-txt-file-to-dns/34760 "2021-03-10T16:56:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [March 10, 2021, 4:56pm UTC](https://forum.ansible.com/t/resolve-list-of-ips-in-txt-file-to-dns/34760/1 "2021-03-10T16:56:09Z")

</div>

how can i use ansible to resolve list of IPs to DNS names?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 10, 2021, 5:15pm UTC](https://forum.ansible.com/t/resolve-list-of-ips-in-txt-file-to-dns/34760/2 "2021-03-10T17:15:39Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/community/general/dig\_lookup.html](https://docs.ansible.com/ansible/latest/collections/community/general/dig_lookup.html)
