# Grouping EC2 inventory by DNS

**URL:** <https://forum.ansible.com/t/grouping-ec2-inventory-by-dns/13491>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [September 17, 2013, 2:31am UTC](https://forum.ansible.com/t/grouping-ec2-inventory-by-dns/13491 "2013-09-17T02:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![herby.gillot1](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@herby.gillot1](https://forum.ansible.com/u/herby.gillot1)\
**Post date:** [September 17, 2013, 2:31am UTC](https://forum.ansible.com/t/grouping-ec2-inventory-by-dns/13491/1 "2013-09-17T02:31:11Z")

</div>

Hello all.

Currently the (quite useful) EC2 inventory plugin provides grouping for AWS instances based  
off of each instance’s individual attributes, such as tags, the region where the instance is  
located, etc. But one thing that would be quite useful would be additional grouping based  
off the domain names pointing to each instance from Route53. This is especially helpful  
for addressing small groups or individual instances through a better known domain name,  
as opposed to using the relatively more opaque AWS-assigned public domain name, or  
the instance’s private IP.

I don’t currently see anything that provides this functionality right now; if there is already  
a way to do this, please enlighten me. If not, would the project be open to patches  
to add this? Since the plugin has a config file, this could be off by default; it will have  
no impact on most users who do not use or need this functionality, but at the very least  
will be there for those that really need it.

Thanks in advance.
