Note
This filter plugin is part of the community.dns collection (version 3.3.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.dns.
To use it in a playbook, specify: community.dns.reverse_pointer.
New in community.dns 3.1.0
192.168.1.2, converts it to a DNS name to use for reverse lookups, such as 2.1.168.192.in-addr.arpa.This describes the input of the filter, the value before | community.dns.reverse_pointer.
Parameter | Comments |
|---|---|
Input string / required | The IP address. |
See also
Describes in-addr.arpa.
Describes ip6.arpa.
- name: Convert IP address to DNS name for reverse lookup
ansible.builtin.set_fact:
dns_name: "{{ ip_address | community.dns.reverse_pointer }}"
# Should result in '2.1.168.192.in-addr.arpa.'
vars:
ip_address: 192.168.1.2
Key | Description |
|---|---|
Return value string | The DNS name. Returned: success |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/dns/reverse_pointer_filter.html