original_docstring: 
          Return the PTR record of the given subject (if found).
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :return: A list of PTR record(s).
          :rtype: list, None
          :raise ValueError: When a non string :code:`subject` is given.
          
docstring: Return the PTR record of the given subject (if found).
docstring_tokens: Return the PTR record of the given subject ( if found ) .
code: def ptr_record(self, subject, reverse_name=True, tcp=None):
          """
          Return the PTR record of the given subject (if found).
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :return: A list of PTR record(s).
          :rtype: list, None
          :raise ValueError: When a non string :code:`subject` is given.
          """
  
          if not subject or not isinstance(subject, str):
              raise ValueError(f"<subject> must be of type {str} and not empty.")
  
          if tcp is None:
              tcp = self.tcp
  
          PyFunceble.LOGGER.debug(f"Query over TCP: {self.tcp}")
  
          try:
              PyFunceble.LOGGER.info(f"Getting TXT record of {repr(subject)}")
              if reverse_name:
                  # We get the reverse name we are going to request.
                  to_request = dns.reversename.from_address(subject)
              else:
                  to_request = subject
  
              # We get the PTR record of the currently read A record.
              result = [str(x) for x in self.resolver.resolve(to_request, "PTR", tcp=tcp)]
              PyFunceble.LOGGER.info(f"Could get PTR record of {repr(subject)}: {result}")
  
              return result
          except DNSException:
              PyFunceble.LOGGER.error(f"Could not get PTR record of {repr(subject)}")
  
          return None
code_tokens: def ptr_record ( self , subject , reverse_name = True , tcp = None ) : if not subject or not isinstance ( subject , str ) : raise ValueError ( f"<subject> must be of type {str} and not empty." ) if tcp is None : tcp = self . tcp PyFunceble . LOGGER . debug ( f"Query over TCP: {self.tcp}" ) try : PyFunceble . LOGGER . info ( f"Getting TXT record of {repr(subject)}" ) if reverse_name : to_request = dns . reversename . from_address ( subject ) else : to_request = subject result = [ str ( x ) for x in self . resolver . resolve ( to_request , "PTR" , tcp = tcp ) ] PyFunceble . LOGGER . info ( f"Could get PTR record of {repr(subject)}: {result}" ) return result except DNSException : PyFunceble . LOGGER . error ( f"Could not get PTR record of {repr(subject)}" ) return None
short_docstring: Return the PTR record of the given subject (if found).
short_docstring_tokens: Return the PTR record of the given subject ( if found ) .
comment: """
          Return the PTR record of the given subject (if found).
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :return: A list of PTR record(s).
          :rtype: list, None
          :raise ValueError: When a non string :code:`subject` is given.
          """$SEP$# We get the reverse name we are going to request.$SEP$# We get the PTR record of the currently read A record.