parameters: (self, host, default_ip)
return_statement: return ip
docstring: Return real IPv4 for private hosts and Web proxy IP otherwise.
  
      Args:
        host: a hostname ending with a period (e.g. "www.google.com.")
      Returns:
        IP address as a string or None (if lookup fails)
docstring_summary: Return real IPv4 for private hosts and Web proxy IP otherwise.
docstring_tokens: Return real IPv4 for private hosts and Web proxy IP otherwise .
function: def __call__(self, host, default_ip):
      """Return real IPv4 for private hosts and Web proxy IP otherwise.
  
      Args:
        host: a hostname ending with a period (e.g. "www.google.com.")
      Returns:
        IP address as a string or None (if lookup fails)
      """
      ip = default_ip
      if host not in self.archive_hosts:
        real_ip = self.real_dns_lookup(host)
        if real_ip:
          if ipaddr.IPAddress(real_ip).is_private:
            ip = real_ip
        else:
          ip = None
      return ip
function_tokens: def __call__ ( self , host , default_ip ) : ip = default_ip if host not in self . archive_hosts : real_ip = self . real_dns_lookup ( host ) if real_ip : if ipaddr . IPAddress ( real_ip ) . is_private : ip = real_ip else : ip = None return ip