original_docstring: 
          Handle the request for a subject which is an IP.
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :rtype: dict
          :raise ValueError: When a non string :code:`subject` is given.
          
docstring: Handle the request for a subject which is an IP.
docstring_tokens: Handle the request for a subject which is an IP .
code: def __request_ip(self, subject, tcp=None):  # pragma: no cover
          """
          Handle the request for a subject which is an IP.
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :rtype: dict
          :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.info(f"{repr(subject)} is an IP. Requesting PTR record.")
  
          result = {}
  
          # We get the PTR record of the given subject.
          result["PTR"] = self.ptr_record(subject, tcp=tcp)
  
          if "PTR" not in result or not result["PTR"]:
              del result["PTR"]
  
              PyFunceble.LOGGER.error(f"PTR record for {repr(subject)} not found.")
          elif result["PTR"]:
              result["nameservers"] = self.resolver.nameservers
  
          if not result:
              # We could not get DNS records about the given subject.
  
              PyFunceble.LOGGER.info(f"Getting hosts by addr for {repr(subject)}")
  
              result = self.get_host_by_addr(subject)
  
          PyFunceble.LOGGER.debug(f"Request result: \n{result}")
  
          return result
code_tokens: def __request_ip ( self , subject , 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 . info ( f"{repr(subject)} is an IP. Requesting PTR record." ) result = { } result [ "PTR" ] = self . ptr_record ( subject , tcp = tcp ) if "PTR" not in result or not result [ "PTR" ] : del result [ "PTR" ] PyFunceble . LOGGER . error ( f"PTR record for {repr(subject)} not found." ) elif result [ "PTR" ] : result [ "nameservers" ] = self . resolver . nameservers if not result : PyFunceble . LOGGER . info ( f"Getting hosts by addr for {repr(subject)}" ) result = self . get_host_by_addr ( subject ) PyFunceble . LOGGER . debug ( f"Request result: \n{result}" ) return result
short_docstring: Handle the request for a subject which is an IP.
short_docstring_tokens: Handle the request for a subject which is an IP .
comment: # pragma: no cover$SEP$"""
          Handle the request for a subject which is an IP.
  
          :param str subject: The subject we are working with.
          :param bool tcp: Tell us to use TCP for query.
  
          :rtype: dict
          :raise ValueError: When a non string :code:`subject` is given.
          """$SEP$# We get the PTR record of the given subject.$SEP$# We could not get DNS records about the given subject.