ip4_to_rdns

privex.helpers.net.ip4_to_rdns(ip_obj: ipaddress.IPv4Address, v4_boundary: int = 24, boundary: bool = False)str[source]

Internal function for getting the rDNS domain for a given v4 address. Use ip_to_rdns() unless you have a specific need for this one.

Parameters
  • ip_obj (IPv4Address) – An IPv4 ip_address() object to get the rDNS domain for

  • v4_boundary (int) – 8-32 bits. If boundary is True, return the base rDNS domain at this boundary.

  • boundary (bool) – If True, cut off the rDNS domain to the given v4_boundary

Return str rdns_domain

in-addr.arpa format, e.g. 0.0.127.in-addr.arpa