# Dynamic inventory shows some internal host incorrectly

**URL:** <https://forum.ansible.com/t/dynamic-inventory-shows-some-internal-host-incorrectly/24764>\
**Category:** Ansible Project\
**Created:** [June 19, 2017, 5:50pm UTC](https://forum.ansible.com/t/dynamic-inventory-shows-some-internal-host-incorrectly/24764 "2017-06-19T17:50:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Cheng](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Anthony\_Cheng](https://forum.ansible.com/u/Anthony_Cheng)\
**Post date:** [June 19, 2017, 5:50pm UTC](https://forum.ansible.com/t/dynamic-inventory-shows-some-internal-host-incorrectly/24764/1 "2017-06-19T17:50:18Z")

</div>

I am currently using dynamic inventory with ec2.ini set to use private\_dns\_name & private\_ip\_address

However certain host in a different subnet are showing up as ip-x.x.x.x.ec2-internal as opposed to just returning their private IP (which they have). Does anyone have an idea why this is happening?

e.g. I ran a plugin across the host based on tag and some returned incorrectly:

[https://lh3.googleusercontent.com/-OmqJniJvG7Y/WUgN-qHyucI/AAAAAAAAF70/f0v4VxQah7srqLTtFKjHL4Z-joQ7sSbhwCLcBGAs/s1600/Selection\_019.png](https://lh3.googleusercontent.com/-OmqJniJvG7Y/WUgN-qHyucI/AAAAAAAAF70/f0v4VxQah7srqLTtFKjHL4Z-joQ7sSbhwCLcBGAs/s1600/Selection_019.png)
