ip6_to_rdns

privex.helpers.net.ip6_to_rdns(ip_obj: ipaddress.IPv6Address, v6_boundary: int = 32, boundary: bool = False)str[source]

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

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

  • v6_boundary (int) – 8-128 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 v6_boundary

Return str rdns_domain

ip6.arpa format, e.g. 0.8.e.f.ip6.arpa