Skip to content

[feature request] Support network in reverse_pointer filter #277

@felixauringer

Description

@felixauringer
SUMMARY

I would like to be able to pipe an IP network in CIDR notation into the reverse_pointer filter.

'192.168.10.0/24' | community.dns.reverse_pointer => 10.168.192.in-addr.arpa

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

Regards the existing filter reverse_pointer which currently errors in my use case.

ADDITIONAL INFORMATION

I am configuring dnsmasq and would like to delegate reverse lookups for a specific subnet to another dnsmasq server. The correct configuration for that would be:

server=/10.168.192.in-addr.arpa/dns2.example.internal

In my playbook, I usually use network ranges in CIDR notation to process them with ansible's ipaddr module. The best solution currently is to extract the IP address from the CIDR notation with the ipaddr module, then get the domain for that with the reverse_pointer filter and then do some string slicing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions